]> cat aescling's git repositories - mastodon.git/commit
More use of next link header on account (media) timelines (#3311)
authorunarist <m.unarist@gmail.com>
Thu, 25 May 2017 15:09:13 +0000 (00:09 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 25 May 2017 15:09:13 +0000 (17:09 +0200)
commitcf4fe6cab86384971d4b7bd634f48b0a462efd48
treebb6caf911ab91eb1e65e0e4f33f8ad15df0e2a38
parent2241a15ee9a79a2206beba1d98857b85c138aaad
More use of next link header on account (media) timelines (#3311)

This will reduce requests on who have only few statuses.

- Use next link header to detect more items from first request
- Omit next link header if result items are fewer than requested count
(It had omit it only if result was empty before)
app/controllers/api/v1/accounts_controller.rb
app/javascript/mastodon/actions/accounts.js
app/javascript/mastodon/reducers/timelines.js