You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app
ThibG a8e84a18f1
Fix larger video files not being transcoded (#14306)
Since #14145, the `set_type_and_extension` has been moved from
`before_post_process` to `before_file_post_process`, but while the former
runs before all validations performed by Paperclip, the latter is dependent
on the order validations and hooks are defined.

In our case, this meant video files could be checked against the generic 10MB
limit, causing validation failures, which, internally, make Paperclip skip
post-processing, and thus, transcoding of the video file.

The actual validation would then happen after the type is correctly set, so
the large file would pass validation, but without being transcoded first.

This commit moves the hook definition so that it is run before checking for
the file size.
6 years ago
..
chewy Change `tootctl search deploy` algorithm (#14300) 6 years ago
controllers Fix media attachments enumeration (#14254) 6 years ago
helpers Add a visibility icon to status (#14123) 6 years ago
javascript Add a visibility icon to boost modal (#14292) 6 years ago
lib Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191) 6 years ago
mailers Add e-mail-based sign in challenge for users with disabled 2FA (#14013) 6 years ago
models Fix larger video files not being transcoded (#14306) 6 years ago
policies
presenters Add user notes on accounts (#14148) 6 years ago
serializers Change design of account notes in web UI (#14208) 6 years ago
services Fix account domain block not properly unfollowing accounts from domain (#14304) 6 years ago
validators
views Fix videos on public pages not using custom thumbnails (#14273) 6 years ago
workers Add color extraction for audio thumbnails (#14209) 6 years ago