about summary refs log tree commit diff
path: root/app/controllers/api/v1/media_controller.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-04 01:07:49 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-03-04 01:07:49 +0100
commitd9c3109bb67f64c671573b1bab02132c6214509b (patch)
tree3d39c780306ee52a48b3c3d1ae30ecf600ba962d /app/controllers/api/v1/media_controller.rb
parent3637a0101e1f5095397f190e88f281d603797c32 (diff)
parent2ea754b8610b50cc93aeb1921ecdf7415efaf17e (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/api/v1/media_controller.rb')
-rw-r--r--app/controllers/api/v1/media_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/media_controller.rb b/app/controllers/api/v1/media_controller.rb
index 72094790f..f9c935bf3 100644
--- a/app/controllers/api/v1/media_controller.rb
+++ b/app/controllers/api/v1/media_controller.rb
@@ -31,7 +31,7 @@ class Api::V1::MediaController < Api::BaseController
   end
 
   def set_media_attachment
-    @media_attachment = current_account.media_attachments.unattached.find(params[:id])
+    @media_attachment = current_account.media_attachments.where(status_id: nil).find(params[:id])
   end
 
   def check_processing