iceshrimp-legacy/packages/backend/src/misc/is-quote.ts

11 lines
244 B
TypeScript
Raw Normal View History

2023-01-13 05:40:33 +01:00
import type { Note } from "@/models/entities/note.js";
2018-07-20 22:35:43 +02:00
2023-01-13 05:40:33 +01:00
export default function (note: Note): boolean {
return (
note.renoteId != null &&
(note.text != null ||
note.hasPoll ||
(note.fileIds != null && note.fileIds.length > 0))
);
2018-07-20 22:35:43 +02:00
}