diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:27:58 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-16 13:28:25 +0100 |
commit | 7d53ee73f323b04757a78e83dcbe49c872d481eb (patch) | |
tree | 5a5ba68d74ca96a97cce6a4cd054f42f28f86b49 /app/controllers/api | |
parent | da5d3662305b3d28af9e88a7168f3a1702351a9a (diff) |
Fix #238 - Add "favourites" column
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/favourites_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/favourites_controller.rb b/app/controllers/api/v1/favourites_controller.rb index a71592acd..ea799fd55 100644 --- a/app/controllers/api/v1/favourites_controller.rb +++ b/app/controllers/api/v1/favourites_controller.rb @@ -13,7 +13,7 @@ class Api::V1::FavouritesController < ApiController set_maps(@statuses) set_counters_maps(@statuses) - next_path = api_v1_favourites_url(max_id: results.last.id) if results.size == DEFAULT_ACCOUNTS_LIMIT + next_path = api_v1_favourites_url(max_id: results.last.id) if results.size == DEFAULT_STATUSES_LIMIT prev_path = api_v1_favourites_url(since_id: results.first.id) unless results.empty? set_pagination_headers(next_path, prev_path) |