about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-16 13:27:58 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-16 13:28:25 +0100
commit7d53ee73f323b04757a78e83dcbe49c872d481eb (patch)
tree5a5ba68d74ca96a97cce6a4cd054f42f28f86b49 /app/controllers/api
parentda5d3662305b3d28af9e88a7168f3a1702351a9a (diff)
Fix #238 - Add "favourites" column
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/favourites_controller.rb2
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)