0
0
Fork 0

Add polls and media attachments to edit comparison modal in web UI (#17727)

This commit is contained in:
Eugen Rochko 2022-03-09 21:15:24 +01:00 committed by GitHub
parent 2a56a890da
commit 9f2791eb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 154 additions and 49 deletions

View file

@ -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