about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/lib/status_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/status_filter.rb b/app/lib/status_filter.rb
index b973bdf42..e6c6a39e5 100644
--- a/app/lib/status_filter.rb
+++ b/app/lib/status_filter.rb
@@ -59,7 +59,7 @@ class StatusFilter
     return false if mentioned_account_ids.include?(account.id)
 
     # Filter posts missing media descriptions.
-    return true if account.user.filter_undescribed? && status.media_attachments.all? { |attachment| attachment.description.blank? }
+    return true if account.user.filter_undescribed? && status.media_attachments.present? && status.media_attachments.all? { |attachment| attachment.description.blank? }
 
     return true if account.user_hides_mentions_of_blocked? && mentioned_accounts.where.not(suspended_at: nil).exists?