Skip to content

Commit

Permalink
Fix issue when encountering reblog of deleted post in feed rebuild (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Sep 20, 2024
1 parent ed8b0e4 commit 7ed9c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/feed_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def build_crutches(receiver_id, statuses)
arr = crutches[:active_mentions][s.id] || []
arr.push(s.account_id)

if s.reblog?
if s.reblog? && s.reblog.present?
arr.push(s.reblog.account_id)
arr.concat(crutches[:active_mentions][s.reblog_of_id] || [])
end
Expand Down

0 comments on commit 7ed9c59

Please sign in to comment.