mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-18 01:10:46 -04:00
Fix streaming server not filtering unknown-language posts from public timelines (#33774)
This commit is contained in:
parent
1ed1cdba1b
commit
7e20ee7695
@ -651,7 +651,7 @@ const startServer = async () => {
|
||||
// filtering of statuses:
|
||||
|
||||
// Filter based on language:
|
||||
if (Array.isArray(req.chosenLanguages) && payload.language !== null && req.chosenLanguages.indexOf(payload.language) === -1) {
|
||||
if (Array.isArray(req.chosenLanguages) && req.chosenLanguages.indexOf(payload.language) === -1) {
|
||||
log.debug(`Message ${payload.id} filtered by language (${payload.language})`);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user