diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-22 17:51:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-22 17:51:36 +0900 |
| commit | 06cfa207fc1ec40c9604b69ede7170cb02d52a15 (patch) | |
| tree | fc28282514d21a6ae6c199dd8a008a5feb3abb21 /src/client/app/common/scripts | |
| parent | Update README.md (diff) | |
| download | misskey-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.ts | 16 |
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; -} |