Merge branch 'develop' into pr/12085

This commit is contained in:
syuilo 2023-10-30 16:24:24 +09:00
commit 6a8375b045
51 changed files with 543 additions and 129 deletions

View file

@ -0,0 +1,10 @@
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;
}