]> cat aescling's git repositories - mastodon.git/commit
Fix un-reblogged status being at wrong position in the home timeline (#5418)
authorunarist <m.unarist@gmail.com>
Mon, 16 Oct 2017 13:58:23 +0000 (22:58 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 16 Oct 2017 13:58:23 +0000 (15:58 +0200)
commit6f490b4bfed5fba9bd543a4c99b5694f37cd1f99
treeb2944c5a72b32b1943542d39b41301aca687df28
parent03975dbde4488d2ec015fb95010084ae371b4546
Fix un-reblogged status being at wrong position in the home timeline (#5418)

We've changed un-reblogging behavior when we implement Snowflake, to insert un-reblogged status at the position reblogging status existed.

However, our API expects home timeline is ordered by status ids, and max_id/since_id filters by zset score. Due to this, un-reblogged status appears as a last item of result set, and timeline expansion may skips many statuses.

So this reverts that change...reblogged status inserted at corresponding position to its id.
app/lib/feed_manager.rb
spec/lib/feed_manager_spec.rb