`account.filter_undescribed?` -> `account.user.filter_undescribed?`

master
multiple creatures 2020-01-10 20:43:46 -06:00
parent 0a52e51d00
commit 1e329a7d72
1 changed files with 1 additions and 1 deletions

View File

@ -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?