Browse Source

Only stream local-only toots to logged-in users

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
a100f05687
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      streaming/index.js

+ 6
- 0
streaming/index.js View File

@ -334,6 +334,12 @@ const startWorker = (workerId) => {
return;
}
// Only send local-only statuses to logged-in users
if (payload.local_only && !req.accountId) {
log.silly(req.requestId, `Message ${payload.id} filtered because it was local-only`);
return;
}
// Only messages that may require filtering are statuses, since notifications
// are already personalized and deletes do not matter
if (!needsFiltering || event !== 'update') {

Loading…
Cancel
Save