diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-10 15:29:12 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 03:56:30 -0600 |
commit | 941c1d41ffebfcd96d6709219c50b1482f930e9b (patch) | |
tree | cf0c982dce4f261af2aed71c9fdc7413dd5e0ce2 /app/models | |
parent | 68456c90ce53b5a9852d30ea83d28e14b8c0bac0 (diff) |
port tootsuite#11775 to monsterfork: Add retry for failed media downloads and `tootctl media refresh`
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/media_attachment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 3df69ea66..c23c8b294 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -134,7 +134,7 @@ class MediaAttachment < ApplicationRecord validates_attachment_content_type :file, content_type: IMAGE_MIME_TYPES + VIDEO_MIME_TYPES + AUDIO_MIME_TYPES validates_attachment_size :file, less_than: IMAGE_LIMIT, unless: :larger_media_format? validates_attachment_size :file, less_than: VIDEO_LIMIT, if: :larger_media_format? - remotable_attachment :file, VIDEO_LIMIT + remotable_attachment :file, VIDEO_LIMIT, suppress_errors: false include Attachmentable |