2
2
mirror of https://github.com/mastodon/mastodon synced 2025-04-12 00:56:38 +02:00

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
parent 2c1d3f9357
commit d2d0692232

View File

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