mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix FeedManager#filter_from_home error when handling a reblog of a deleted status (#37486)
This commit is contained in:
parent
85eda5b46f
commit
ded7f50f2c
1 changed files with 1 additions and 0 deletions
|
|
@ -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 :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 :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 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 = crutches[:active_mentions][status.id] || []
|
||||||
check_for_blocks.push(status.account_id)
|
check_for_blocks.push(status.account_id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue