diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-09-16 03:25:06 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-09-16 03:25:06 -0500 |
commit | 750fb3d8b1355719be189ef7de13b728cddd2268 (patch) | |
tree | 4152193036637e7310e2829822093ac7157720b5 /app/controllers/api/v1 | |
parent | 61f7847e89fe61ef4faccea4406e4a6bc0e4137b (diff) |
stop pre-caching tag timeline media
Diffstat (limited to 'app/controllers/api/v1')
-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) ) |