Fix issue when encountering reblog of deleted post in feed rebuild (#32001)

This commit is contained in:
Claire 2024-09-20 16:58:06 +02:00 committed by KMY
parent 72ee286037
commit 99d66c1e29

View file

@ -598,7 +598,7 @@ class FeedManager
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