This commit is contained in:
syuilo
2018-06-22 17:51:36 +09:00
parent 0be8bbc19f
commit 06cfa207fc
4 changed files with 3 additions and 28 deletions

View File

@ -1,16 +0,0 @@
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;
}