1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-19 09:08:19 +09:00
MisskeyIO/packages/backend/src/misc/is-quote.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

6 lines
220 B
TypeScript

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