mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +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))
|
|
);
|
|
}
|