From 2df02a9d70516984793c55bf20f92ca24f1795a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jul 2018 05:35:43 +0900 Subject: wip --- src/misc/is-quote.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/misc/is-quote.ts (limited to 'src/misc') diff --git a/src/misc/is-quote.ts b/src/misc/is-quote.ts new file mode 100644 index 0000000000..420f03a489 --- /dev/null +++ b/src/misc/is-quote.ts @@ -0,0 +1,5 @@ +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)); +} -- cgit v1.2.3-freya