about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-03 16:13:58 +0100
committerGitHub <noreply@github.com>2022-03-03 16:13:58 +0100
commitff43e54a495461eb1a539a1887125190b74754f5 (patch)
treed6e625bef9ca74346cba278079134b8cd5497c17
parent631e495a7900e9638b218474cbc753dd5d2a033e (diff)
Allow editing media attachments for scheduled toots (#17690)
Fixes #17676
-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