1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-30 14:38:30 +09:00
misskey/src/misc/is-quote.ts

6 lines
221 B
TypeScript
Raw Normal View History

2018-07-21 05:35:43 +09:00
import { INote } from '../models/note';
export default function(note: INote): boolean {
return note.renoteId != null && (note.text != null || note.poll != null || (note.mediaIds != null && note.mediaIds.length > 0));
}