diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 05:35:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-21 05:35:43 +0900 |
| commit | 2df02a9d70516984793c55bf20f92ca24f1795a4 (patch) | |
| tree | 24d3968852655497e4ef22270d628908151dd6f6 /src/misc | |
| parent | :art: (diff) | |
| download | sharkey-2df02a9d70516984793c55bf20f92ca24f1795a4.tar.gz sharkey-2df02a9d70516984793c55bf20f92ca24f1795a4.tar.bz2 sharkey-2df02a9d70516984793c55bf20f92ca24f1795a4.zip | |
wip
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/is-quote.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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)); +} |