mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 21:35:38 +02:00
* wip * Update CHANGELOG.md * Update QueryService.ts * Update QueryService.ts * wip * Update MkNoteDetailed.vue * Update NoteEntityService.ts * wip * Update antennas.ts * Update create.ts * Update NoteEntityService.ts * wip * Update CHANGELOG.md * Update NoteEntityService.ts * Update NoteCreateService.ts * Update note.test.ts * Update note.test.ts * Update ClientServerService.ts * Update ClientServerService.ts * add error handling * Update NoteDeleteService.ts * Update CHANGELOG.md * Update entities.ts * Update entities.ts * Update misskey-js.api.md
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
import type { Note, PureRenote } from './entities.js';
|
|
|
|
export function isPureRenote(note: Note): note is PureRenote {
|
|
return (
|
|
note.renoteId != null &&
|
|
note.replyId == null &&
|
|
note.text == null &&
|
|
note.cw == null &&
|
|
(note.fileIds == null || note.fileIds.length === 0) &&
|
|
note.poll == null
|
|
);
|
|
}
|