From d8a5574730b47fed5a6715b893ddcfc016e8a01c Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 17 Dec 2019 20:50:36 -0600 Subject: remove unused `preload_media` --- app/controllers/api/v1/timelines/tag_controller.rb | 6 ------ 1 file changed, 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 849d015ca..8316d8a9f 100644 --- a/app/controllers/api/v1/timelines/tag_controller.rb +++ b/app/controllers/api/v1/timelines/tag_controller.rb @@ -85,10 +85,4 @@ class Api::V1::Timelines::TagController < Api::BaseController def pagination_since_id @statuses.first.id end - - def preload_media(statuses) - status_ids = statuses.joins(:media_attachments).distinct(:id).select(:id).reorder(nil) - fetch_ids = MediaAttachment.where(status_id: status_ids, file_updated_at: nil).pluck(:id) - fetch_ids.each { |m| FetchMediaWorker.perform_async(m) } - end end -- cgit