]> cat aescling's git repositories - mastodon.git/commit
Keep references to all reblogs of a status on home feed (#5419)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 16 Oct 2017 18:44:31 +0000 (20:44 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Oct 2017 18:44:31 +0000 (20:44 +0200)
commit34118169ace56b31d6d4b26638fb7375171b7796
treeff73ce146fff1eec2df11b967c642f7941396abc
parent4fd7aebd5e81236a5ec2956486d3228a40ac4978
Keep references to all reblogs of a status on home feed (#5419)

* Keep references to all reblogs of a status on home feed

When inserting reblog: Add to set of reblogs of this status on
the feed, if original status was present in the feed, add it to
that set as well.

When removing a reblog: Remove it from that set. Take random
remaining item from the set. If one exists, re-insert it into feed,
otherwise do not re-insert anything.

Fix #4210

* When original is removed, toss out reblog references
app/lib/feed_manager.rb
app/workers/scheduler/feed_cleanup_scheduler.rb
spec/lib/feed_manager_spec.rb