From 06cfa207fc1ec40c9604b69ede7170cb02d52a15 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Jun 2018 17:51:36 +0900 Subject: :v: --- src/client/app/common/scripts/can-hide-text.ts | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/client/app/common/scripts/can-hide-text.ts (limited to 'src/client/app/common/scripts') diff --git a/src/client/app/common/scripts/can-hide-text.ts b/src/client/app/common/scripts/can-hide-text.ts deleted file mode 100644 index 4a4be8d9d0..0000000000 --- a/src/client/app/common/scripts/can-hide-text.ts +++ /dev/null @@ -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; -} -- cgit v1.2.3-freya