Add polls and media attachments to edit comparison modal in web UI (#17727)
This commit is contained in:
parent
2a56a890da
commit
9f2791eb64
5 changed files with 154 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue