mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-23 10:43:19 +00:00
Merge tag 'v4.1.5'
This commit is contained in:
commit
d8eead284d
16 changed files with 110 additions and 19 deletions
|
|
@ -24,7 +24,7 @@ module Attachmentable
|
|||
def self.has_attached_file(name, options = {}) # rubocop:disable Naming/PredicateName
|
||||
super(name, options)
|
||||
|
||||
send(:"before_#{name}_validate") do
|
||||
send(:"before_#{name}_validate", prepend: true) do
|
||||
attachment = send(name)
|
||||
check_image_dimension(attachment)
|
||||
set_file_content_type(attachment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue