diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-13 16:44:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 16:44:02 +0200 |
commit | 388d093beb2950553f3806a72e72afe77ecc23ac (patch) | |
tree | 0c636923d79bb11e3858fd06d0a206e2a9b67c31 /app/lib | |
parent | 95fe20b78ada8612108f8e44294cc36fdaf9cef8 (diff) |
When unfollowing, remove from home in web UI immediately (#5369)
Do NOT send "delete" through streaming API when unmerging from home timeline. "delete" implies that the original status was deleted, which is not true!
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/feed_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index 6398aa6d6..100f6c8f8 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -85,7 +85,7 @@ class FeedManager oldest_home_score = redis.zrange(timeline_key, 0, 0, with_scores: true)&.first&.last&.to_i || 0 from_account.statuses.select('id, reblog_of_id').where('id > ?', oldest_home_score).reorder(nil).find_each do |status| - unpush(:home, into_account, status) + remove_from_feed(:home, into_account, status) end end |