mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-18 00:28:16 +09:00
17 lines
287 B
TypeScript
17 lines
287 B
TypeScript
|
export default function(note) {
|
||
|
if (note.text == null) return true;
|
||
|
|
||
|
let txt = note.text;
|
||
|
|
||
|
if (note.media) {
|
||
|
note.media.forEach(file => {
|
||
|
txt = txt.replace(file.url, '');
|
||
|
if (file.src) txt = txt.replace(file.src, '');
|
||
|
});
|
||
|
|
||
|
if (txt == '') return true;
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|