]> cat aescling's git repositories - mastodon.git/commit
Clean up reblog tracking keys, related improvements (#5428)
authoraschmitz <andy.schmitz@gmail.com>
Tue, 17 Oct 2017 09:45:06 +0000 (04:45 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 17 Oct 2017 09:45:06 +0000 (11:45 +0200)
commit554c2fd8af79c173e81d7193ea649fa848076123
tree985dbc03b019ed1a6ae9d128678da8ca6727cfec
parenta2b600428c86a53d755f0cf9c1a7cc5e9884057a
Clean up reblog tracking keys, related improvements (#5428)

* Clean up reblog-tracking sets from FeedManager

Builds on #5419, with a few minor optimizations and cleanup of sets
after they are no longer needed.

* Update tests, fix multiply-reblogged case

Previously, we would have lost the fact that a given status was
reblogged if the displayed reblog of it was removed, now we don't.

Also added tests to make sure FeedManager#trim cleans up our reblog
tracking keys, fixed up FeedCleanupScheduler to use the right loop,
and fixed the test for it.
app/lib/feed_manager.rb
app/workers/scheduler/feed_cleanup_scheduler.rb
spec/lib/feed_manager_spec.rb
spec/workers/scheduler/feed_cleanup_scheduler_spec.rb