1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 01:45:33 +02:00
Files
misskey/packages/backend/src/misc/is-quote.ts
syuilo 567c550120 lint
2022-09-20 05:32:18 +09:00

6 lines
228 B
TypeScript

import type { Note } from '@/models/entities/Note.js';
export default function(note: Note): boolean {
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
}