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
|
|
|
}
|