about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authornullkal <nullkal@nil.nu>2017-12-13 21:42:16 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-12-13 13:42:16 +0100
commit90e7da16a013e7d9024adbbf484123959f83ef01 (patch)
tree44b881cba114c3223a153dc8ccfdf15ad9d7af52 /streaming
parentad75ec8b5b1775edaa485e94ddab69f189affde9 (diff)
Fix the condition in streaming listener (#6008)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 198eac1ae..303e37ab4 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -346,7 +346,7 @@ const startWorker = (workerId) => {
             return;
           }
 
-          if (!req.accountId) {
+          if (req.accountId) {
             const queries = [
               client.query(`SELECT 1 FROM blocks WHERE (account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds, 2)})) OR (account_id = $2 AND target_account_id = $1) UNION SELECT 1 FROM mutes WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds, 2)})`, [req.accountId, unpackedPayload.account.id].concat(targetAccountIds)),
             ];