jormungandr-bite/src/misc/is-quote.ts

6 lines
219 B
TypeScript
Raw Normal View History

2018-07-20 14:35:43 -06:00
import { INote } from '../models/note';
export default function(note: INote): boolean {
2018-09-05 04:32:46 -06:00
return note.renoteId != null && (note.text != null || note.poll != null || (note.fileIds != null && note.fileIds.length > 0));
2018-07-20 14:35:43 -06:00
}