mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 21:19:07 +01:00
11 lines
244 B
TypeScript
11 lines
244 B
TypeScript
import type { Note } from "@/models/entities/note.js";
|
|
|
|
export default function (note: Note): boolean {
|
|
return (
|
|
note.renoteId != null &&
|
|
(note.text != null ||
|
|
note.hasPoll ||
|
|
(note.fileIds != null && note.fileIds.length > 0))
|
|
);
|
|
}
|