summaryrefslogtreecommitdiff
path: root/packages/misskey-js/src/note.ts
blob: c1c0f38a712abc5f0f755871ce6e3768ae9fa5ec (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.renoteId != null &&
		note.replyId == null &&
		note.text == null &&
		note.cw == null &&
		(note.fileIds == null || note.fileIds.length === 0) &&
		note.poll == null
	);
}