Skip to content
Snippets Groups Projects
Commit cfa68907 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #5271 - Fix missing attribute in remove_from_feed (#5277)

Regression from #4801
parent 488584bf
No related branches found
No related tags found
No related merge requests found
......@@ -84,10 +84,8 @@ class FeedManager
timeline_key = key(:home, into_account.id)
oldest_home_score = redis.zrange(timeline_key, 0, 0, with_scores: true)&.first&.last&.to_i || 0
from_account.statuses.select('id').where('id > ?', oldest_home_score).reorder(nil).find_in_batches do |statuses|
statuses.each do |status|
unpush(:home, into_account, status)
end
from_account.statuses.select('id, reblog_of_id').where('id > ?', oldest_home_score).reorder(nil).find_each do |status|
unpush(:home, into_account, status)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment