diff options
Diffstat (limited to 'app/controllers/api/v1/timelines')
-rw-r--r-- | app/controllers/api/v1/timelines/tag_controller.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/api/v1/timelines/tag_controller.rb b/app/controllers/api/v1/timelines/tag_controller.rb index 070b6e1c9..2494cfba7 100644 --- a/app/controllers/api/v1/timelines/tag_controller.rb +++ b/app/controllers/api/v1/timelines/tag_controller.rb @@ -33,12 +33,7 @@ class Api::V1::Timelines::TagController < Api::BaseController preload_media(bookmarks) bookmarks else - tag_timeline = tag_timeline_statuses - preload_media(tag_timeline.paginate_by_id( - DEFAULT_STATUSES_LIMIT * 4, - params_slice(:max_id, :since_id, :min_id) - )) - statuses = tag_timeline.paginate_by_id( + statuses = tag_timeline_statuses.paginate_by_id( limit_param(DEFAULT_STATUSES_LIMIT), params_slice(:max_id, :since_id, :min_id) ) |