about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 20:43:46 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 20:43:46 -0600
commit1e329a7d7254c02cc4a9e6d2b717318d32c25669 (patch)
tree23aaa7e487221a58ad69e4c1053a24c893099c45
parent0a52e51d007fae4cf15eba7011d326eb70b067a7 (diff)
`account.filter_undescribed?` -> `account.user.filter_undescribed?`
-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 f9d88c3af..3a50907e6 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.filter_undescribed? && status.media_attachments.all? { |attachment| attachment.description.blank? }
+    return true if account.user.filter_undescribed? && 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?