about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-13 02:38:51 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-13 02:38:51 -0600
commit8f7f45cf8709a77c42c3af00a4011834df5728cb (patch)
treeffdfcb2cf741c5864693342472622040dc5022b4
parentd72e6bfd54dc94176f90ebe5cc4f052546d06e92 (diff)
`!!` truthiness test
-rw-r--r--streaming/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/index.js b/streaming/index.js
index cedf3bd2e..7d6bafa3f 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -403,7 +403,7 @@ const startWorker = (workerId) => {
         return;
       }
 
-      if (req.hideBoosts && unpackedPayload.in_reply_to) {
+      if (req.hideBoosts && !!unpackedPayload.in_reply_to) {
         return;
       }
 
@@ -411,7 +411,7 @@ const startWorker = (workerId) => {
         return;
       }
 
-      if (req.filterUndescribed && Array.isArray(unpackedPayload.media_attachments) && unpackedPayload.media_attachments.every(m => !m.description)) {
+      if (req.filterUndescribed && !!unpackedPayload.media_attachments && unpackedPayload.media_attachments.every(m => !m.description)) {
         return;
       }