This commit is contained in:
syuilo
2018-07-21 05:35:43 +09:00
parent 1d027613e4
commit 2df02a9d70
2 changed files with 210 additions and 188 deletions

5
src/misc/is-quote.ts Normal file
View File

@ -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));
}