1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-21 01:59:07 +09:00
misskey/src/misc/is-quote.ts
2018-09-05 19:32:46 +09:00

6 lines
219 B
TypeScript

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