blob: 5c8298c7e4f5c47639d7bd70535b1c5c8aab32b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
);
}
|