Do not filter statuses with unknown languages (#5045)
This commit is contained in:
parent
dcfc9b2204
commit
0de82dd316
2 changed files with 17 additions and 1 deletions
|
@ -146,7 +146,7 @@ class Status < ApplicationRecord
|
|||
|
||||
class << self
|
||||
def not_in_filtered_languages(account)
|
||||
where.not(language: account.filtered_languages)
|
||||
where(language: nil).or where.not(language: account.filtered_languages)
|
||||
end
|
||||
|
||||
def as_home_timeline(account)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue