From 750fb3d8b1355719be189ef7de13b728cddd2268 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 16 Sep 2019 03:25:06 -0500 Subject: stop pre-caching tag timeline media --- app/controllers/api/v1/timelines/tag_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/controllers/api/v1/timelines') 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) ) -- cgit