mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-07 21:15:12 +00:00
Fix streaming server not filtering unknown-language posts from public timelines (#33774)
This commit is contained in:
parent
bd78330a24
commit
962587bfc8
1 changed files with 1 additions and 1 deletions
|
|
@ -789,7 +789,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.silly(req.requestId, `Message ${payload.id} filtered by language (${payload.language})`);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue