mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-03 06:51:41 -05:00
Fix streaming server not filtering unknown-language posts from public timelines (#33774)
This commit is contained in:
parent
2788808b07
commit
26c692d45b
@ -652,7 +652,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