Fix streaming server only working for streams allowing local-only toots

This commit is contained in:
Thibaut Girka 2020-07-07 20:30:40 +02:00 committed by ThibG
parent 4acb7efb4b
commit c41da2e962
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ const startWorker = (workerId) => {
}
// Only send local-only statuses to logged-in users
if (event === 'update' && payload.local_only && !req.accountId || !allowLocalOnly) {
if (event === 'update' && payload.local_only && !(req.accountId && allowLocalOnly)) {
log.silly(req.requestId, `Message ${payload.id} filtered because it was local-only`);
return;
}