mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-04 19:57:26 +00:00
11 lines
395 B
TypeScript
11 lines
395 B
TypeScript
|
import type { MiNote } from '@/models/Note.js';
|
||
|
|
||
|
export function isPureRenote(note: MiNote): note is MiNote & { renoteId: NonNullable<MiNote['renoteId']> } {
|
||
|
if (!note.renoteId) return false;
|
||
|
|
||
|
if (note.text) return false; // it's quoted with text
|
||
|
if (note.fileIds.length !== 0) return false; // it's quoted with files
|
||
|
if (note.hasPoll) return false; // it's quoted with poll
|
||
|
return true;
|
||
|
}
|