summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-26 23:06:48 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-26 23:06:48 +0200
commiteb1baebc4919058ae773f2d9ecb7b2e76d7d8e4a (patch)
tree8704269c0ce51f086d4b0aaf9eacb6ddfde3fe42 /public
parenta504e64e75f1fddf36c96398b7730e8f3b91cd1f (diff)
build
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index b0e6f3d..c93b5db 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -97,13 +97,15 @@ var HootStream = View.extend({
}
if (
filters.music &&
- thread.files?.some((file) => AUDIO_REGEXP.test(file.filename))
+ thread.files &&
+ thread.files.some((file) => AUDIO_REGEXP.test(file.filename))
) {
return true;
}
if (
filters.images &&
- thread.files?.some((file) => IMAGE_REGEXP.test(file.filename))
+ thread.files &&
+ thread.files.some((file) => IMAGE_REGEXP.test(file.filename))
) {
return true;
}