]> cat aescling's git repositories - mastodon.git/blobdiff - app/models/status.rb
Do not filter statuses with unknown languages (#5045)
[mastodon.git] / app / models / status.rb
index 326d128d6dbbad428bad43caa26f449cbc7685a0..ca261a201616dffdc884debce2a7c044fa239f31 100644 (file)
@@ -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)
This page took 0.023344 seconds and 3 git commands to generate.