mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 10:20:27 +01:00
6 lines
221 B
TypeScript
6 lines
221 B
TypeScript
|
import { INote } from '../models/note';
|
||
|
|
||
|
export default function(note: INote): boolean {
|
||
|
return note.renoteId != null && (note.text != null || note.poll != null || (note.mediaIds != null && note.mediaIds.length > 0));
|
||
|
}
|