From 90e7da16a013e7d9024adbbf484123959f83ef01 Mon Sep 17 00:00:00 2001 From: nullkal Date: Wed, 13 Dec 2017 21:42:16 +0900 Subject: [PATCH] Fix the condition in streaming listener (#6008) --- streaming/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streaming/index.js b/streaming/index.js index 198eac1ae4..303e37ab40 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)), ];