Sharkey/src/misc/is-quote.ts

6 lines
221 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));
}