diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-05-21 00:48:34 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 17:48:34 +0200 |
commit | 22cb286ad7fff27d109bad56c54dd35d8b8265d4 (patch) | |
tree | 38cb50e7abe72a383e333639f22013778eb299fe /app/controllers/api/v1/follow_requests_controller.rb | |
parent | 8f4b7c1820b046c8df10e043a0bc605f3007eee7 (diff) |
Fix regressions in api/v1 (#3178)
The regressions are introduced at commit f55480756337dd4df7513e89673e81e003f1201a by me (Akihiko Odaki)
Diffstat (limited to 'app/controllers/api/v1/follow_requests_controller.rb')
-rw-r--r-- | app/controllers/api/v1/follow_requests_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/follow_requests_controller.rb b/app/controllers/api/v1/follow_requests_controller.rb index 4716019a8..fbb2733d8 100644 --- a/app/controllers/api/v1/follow_requests_controller.rb +++ b/app/controllers/api/v1/follow_requests_controller.rb @@ -9,6 +9,7 @@ class Api::V1::FollowRequestsController < ApiController .references(:follow_requests) .merge(FollowRequest.where(target_account: current_account) .paginate_by_max_id(DEFAULT_ACCOUNTS_LIMIT, params[:max_id], params[:since_id])) + .to_a next_path = api_v1_follow_requests_url(pagination_params(max_id: @accounts.last.follow_requests.last.id)) if @accounts.size == DEFAULT_ACCOUNTS_LIMIT prev_path = api_v1_follow_requests_url(pagination_params(since_id: @accounts.first.follow_requests.first.id)) unless @accounts.empty? |