summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-22 17:51:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-22 17:51:36 +0900
commit06cfa207fc1ec40c9604b69ede7170cb02d52a15 (patch)
treefc28282514d21a6ae6c199dd8a008a5feb3abb21 /src/client/app/common/scripts
parentUpdate README.md (diff)
downloadmisskey-06cfa207fc1ec40c9604b69ede7170cb02d52a15.tar.gz
misskey-06cfa207fc1ec40c9604b69ede7170cb02d52a15.tar.bz2
misskey-06cfa207fc1ec40c9604b69ede7170cb02d52a15.zip
:v:
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/can-hide-text.ts16
1 files changed, 0 insertions, 16 deletions
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;
-}