Browse Source

Fix `FeedManager#filter_from_home` error when handling a reblog of a deleted status (#37486)

pull/1371/head
Claire 2 months ago committed by Misty De Meo
parent
commit
08ac1b9bae
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 1
      app/lib/feed_manager.rb

1
app/lib/feed_manager.rb

@ -450,6 +450,7 @@ class FeedManager
return :filter if status.reply? && (status.in_reply_to_id.nil? || status.in_reply_to_account_id.nil?)
return :skip_home if timeline_type != :list && crutches[:exclusive_list_users][status.account_id].present?
return :filter if crutches[:languages][status.account_id].present? && status.language.present? && !crutches[:languages][status.account_id].include?(status.language)
return :filter if status.reblog? && status.reblog.blank?
check_for_blocks = crutches[:active_mentions][status.id] || []
check_for_blocks.push(status.account_id)

Loading…
Cancel
Save