about summary refs log tree commit diff
path: root/app/controllers/api/v1/timelines/tag_controller.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-17 20:50:36 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-17 20:50:36 -0600
commitd8a5574730b47fed5a6715b893ddcfc016e8a01c (patch)
tree2e543acd6eee1d70f88b71caadce809b6ec0a0a1 /app/controllers/api/v1/timelines/tag_controller.rb
parent7cd4f2515b02a4f8c01d807c2fa1e46c254589df (diff)
remove unused `preload_media`
Diffstat (limited to 'app/controllers/api/v1/timelines/tag_controller.rb')
-rw-r--r--app/controllers/api/v1/timelines/tag_controller.rb6
1 files changed, 0 insertions, 6 deletions
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