mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-11 01:00:07 +09:00
13 lines
305 B
TypeScript
13 lines
305 B
TypeScript
|
import type { Note, PureRenote } from './entities.js';
|
||
|
|
||
|
export function isPureRenote(note: Note): note is PureRenote {
|
||
|
return (
|
||
|
note.renote != null &&
|
||
|
note.reply == null &&
|
||
|
note.text == null &&
|
||
|
note.cw == null &&
|
||
|
(note.fileIds == null || note.fileIds.length === 0) &&
|
||
|
note.poll == null
|
||
|
);
|
||
|
}
|