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 and atsu1125 committed Dec 2, 2024
1 parent 9ec8c05 commit 4fd4350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/feed_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ def build_crutches(receiver_id, statuses)
arr = crutches[:active_mentions][s.id] || []
arr.concat([s.account_id])

if s.reblog?
arr.concat([s.reblog.account_id])
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 4fd4350

Please sign in to comment.