Add media attachment description limit to instance API response (#33153)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-12-04 15:10:20 +00:00
1 parent 48ea7552dd
commit 0fcf227a92
2 files changed
+7 -3

No files matched your search

+4 -3
View File
@@ -77,12 +77,13 @@ class REST::InstanceSerializer < ActiveModel::Serializer
},
media_attachments: {
supported_mime_types: MediaAttachment.supported_mime_types,
image_size_limit: MediaAttachment::IMAGE_LIMIT,
description_limit: MediaAttachment::MAX_DESCRIPTION_LENGTH,
image_matrix_limit: Attachmentable::MAX_MATRIX_LIMIT,
video_size_limit: MediaAttachment::VIDEO_LIMIT,
image_size_limit: MediaAttachment::IMAGE_LIMIT,
supported_mime_types: MediaAttachment.supported_mime_types,
video_frame_rate_limit: MediaAttachment::MAX_VIDEO_FRAME_RATE,
video_matrix_limit: MediaAttachment::MAX_VIDEO_MATRIX_LIMIT,
video_size_limit: MediaAttachment::VIDEO_LIMIT,
},
polls: {