Browse Source

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

Regression from #4801
pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
cfa68907ae
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      app/lib/feed_manager.rb

+ 2
- 4
app/lib/feed_manager.rb View File

@ -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

Loading…
Cancel
Save