about summary refs log tree commit diff
path: root/streaming/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'streaming/index.js')
-rw-r--r--streaming/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 015546658..cedf3bd2e 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -403,15 +403,15 @@ const startWorker = (workerId) => {
         return;
       }
 
-      if (req.hideBoosts && (unpackedPayload.in_reply_to !== undefined || unpackedPayload.in_reply_to !== null)) {
+      if (req.hideBoosts && unpackedPayload.in_reply_to) {
         return;
       }
 
-      if (req.mediaOnly && (!unpackedPayload.media_attachments || unpackedPayload.media_attachments.length === 0)) {
+      if (req.mediaOnly && !unpackedPayload.media_attachments) {
         return;
       }
 
-      if (req.filterUndescribed && unpackedPayload.media_attachments && unpackedPayload.media_attachments.every(m => !m.description || m.description.length === 0)) {
+      if (req.filterUndescribed && Array.isArray(unpackedPayload.media_attachments) && unpackedPayload.media_attachments.every(m => !m.description)) {
         return;
       }