浏览代码

Fix the condition in streaming listener (#6008)

master
nullkal 6 年前
committed by Eugen Rochko
父节点
当前提交
90e7da16a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      streaming/index.js

+ 1
- 1
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)),
];


正在加载...
取消
保存