client.query(`SELECT target_account_id FROM blocks WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds,1)}) UNION SELECT target_account_id FROM mutes WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds,1)})`,[req.accountId].concat(targetAccountIds),(err,result)=>{
done()
log.silly(req.requestId,`Transmitting for ${req.accountId}: ${event}${payload} Delay: ${delta}ms`)
output(event,payload)
}
// Only messages that may require filtering are statuses, since notifications
// are already personalized and deletes do not matter
client.query(`SELECT target_account_id FROM blocks WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds,1)}) UNION SELECT target_account_id FROM mutes WHERE account_id = $1 AND target_account_id IN (${placeholders(targetAccountIds,1)})`,[req.accountId].concat(targetAccountIds),(err,result)=>{