parent
037837b551
commit
0e4a111f81
1714 changed files with 20803 additions and 11751 deletions
5
packages/backend/src/misc/is-quote.ts
Normal file
5
packages/backend/src/misc/is-quote.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { Note } from '@/models/entities/note';
|
||||
|
||||
export default function(note: Note): boolean {
|
||||
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue