diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-22 02:50:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-22 02:50:36 +0200 |
commit | aa9b37822bd39dff771844b7b1ac149e37788d34 (patch) | |
tree | 3be8da439c83958dc5076548c6042ffeff66d461 /app/serializers | |
parent | 84f945d64c00c73c35a3f9c23b895a4288ff2592 (diff) |
Fix audio not being downloaded from remote servers (#11145)
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/initial_state_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb index 3d825410e..8daf36e0a 100644 --- a/app/serializers/initial_state_serializer.rb +++ b/app/serializers/initial_state_serializer.rb @@ -60,7 +60,7 @@ class InitialStateSerializer < ActiveModel::Serializer end def media_attachments - { accept_content_types: MediaAttachment::IMAGE_FILE_EXTENSIONS + MediaAttachment::VIDEO_FILE_EXTENSIONS + MediaAttachment::AUDIO_FILE_EXTENSIONS + MediaAttachment::IMAGE_MIME_TYPES + MediaAttachment::VIDEO_MIME_TYPES + MediaAttachment::AUDIO_MIME_TYPES } + { accept_content_types: MediaAttachment.supported_file_extensions + MediaAttachment.supported_mime_types } end private |