mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-11 21:14:56 +00:00
Only stream local-only toots to logged-in users
This commit is contained in:
parent
f84897c7d7
commit
a100f05687
|
@ -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…
Reference in a new issue