about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2017-09-23 02:33:17 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-22 19:33:17 +0200
commit0de82dd316839ed329504bfbf9bd0f2d3d96e654 (patch)
treef9baedb5c355ccc3ed955851a1eb5605662c4f51 /app/models
parentdcfc9b220462533c8bcdebc7ca25a68fa23aaf5f (diff)
Do not filter statuses with unknown languages (#5045)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 326d128d6..ca261a201 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -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)