diff options
author | Matt Jankowski <matt@jankowski.online> | 2024-02-06 08:18:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 13:18:37 +0000 |
commit | 69e61fff38b426109bd074ccf93f5d2874d430c2 (patch) | |
tree | fe951d721448316307afea9347aa5036ab067ce1 /app/views/admin | |
parent | 2d6ab445562fd6c4d56d7aef5dd406c15de8bbf9 (diff) |
Move direct serializer usage out of admin view partial (#29028)
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/reports/_media_attachments.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/reports/_media_attachments.html.haml b/app/views/admin/reports/_media_attachments.html.haml index 3c52d691781..45cc4c5aa31 100644 --- a/app/views/admin/reports/_media_attachments.html.haml +++ b/app/views/admin/reports/_media_attachments.html.haml @@ -12,6 +12,6 @@ = react_component :media_gallery, height: 343, lang: status.language, - media: status.ordered_media_attachments.map { |a| ActiveModelSerializers::SerializableResource.new(a, serializer: REST::MediaAttachmentSerializer).as_json }, + media: serialized_media_attachments(status.ordered_media_attachments), sensitive: status.sensitive?, visible: false |