Add retry for failed media downloads and tootctl media refresh
(#11775)
This commit is contained in:
parent
8674814825
commit
031ca25014
5 changed files with 92 additions and 16 deletions
|
@ -118,7 +118,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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue