about summary refs log tree commit diff
path: root/app/models/status_edit.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-03-09 21:15:24 +0100
committerGitHub <noreply@github.com>2022-03-09 21:15:24 +0100
commit9f2791eb64d5d19418561270f79071c185876d20 (patch)
treeebf96dada0dd70f7589b0b3cadac778a3df8aacd /app/models/status_edit.rb
parent2a56a890dabb7cffd1dc14cf8a7aea9cccc7ab09 (diff)
Add polls and media attachments to edit comparison modal in web UI (#17727)
Diffstat (limited to 'app/models/status_edit.rb')
-rw-r--r--app/models/status_edit.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/status_edit.rb b/app/models/status_edit.rb
index 6da9b4b85..e9c8fbe98 100644
--- a/app/models/status_edit.rb
+++ b/app/models/status_edit.rb
@@ -25,7 +25,12 @@ class StatusEdit < ApplicationRecord
 
   class PreservedMediaAttachment < ActiveModelSerializers::Model
     attributes :media_attachment, :description
-    delegate :id, :type, :url, :preview_url, :remote_url, :preview_remote_url, :text_url, :meta, :blurhash, to: :media_attachment
+
+    delegate :id, :type, :url, :preview_url, :remote_url,
+             :preview_remote_url, :text_url, :meta, :blurhash,
+             :not_processed?, :needs_redownload?, :local?,
+             :file, :thumbnail, :thumbnail_remote_url,
+             :shortcode, to: :media_attachment
   end
 
   rate_limit by: :account, family: :statuses