diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-22 02:50:36 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 03:42:36 -0600 |
commit | 81681f04cad137f19e77dacecc619bccde38b8fb (patch) | |
tree | f2dc7044d1b9e3b4d183afcdc345438e27bef653 /app/models | |
parent | 9e534aad191af5209e2f08183cad6b25cba34a93 (diff) |
Fix audio not being downloaded from remote servers (#11145)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/media_attachment.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index e2a44d457..74f6c8899 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -216,6 +216,14 @@ class MediaAttachment < ApplicationRecord before_save :set_meta class << self + def supported_mime_types + IMAGE_MIME_TYPES + VIDEO_MIME_TYPES + AUDIO_MIME_TYPES + end + + def supported_file_extensions + IMAGE_FILE_EXTENSIONS + VIDEO_FILE_EXTENSIONS + AUDIO_FILE_EXTENSIONS + end + private def file_styles(f) |