Raise maximum attachment size to 66 MiB and maximum standard GIF size to 333 KiB.
parent
1ca30982fa
commit
acdfce2bba
|
@ -125,8 +125,8 @@ class MediaAttachment < ApplicationRecord
|
||||||
},
|
},
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
SIZE_LIMIT = 40.megabytes
|
SIZE_LIMIT = 66.megabytes
|
||||||
GIF_LIMIT = ENV.fetch('MAX_GIF_SIZE', 200).to_i.kilobytes
|
GIF_LIMIT = ENV.fetch('MAX_GIF_SIZE', 333).to_i.kilobytes
|
||||||
|
|
||||||
belongs_to :account, inverse_of: :media_attachments, optional: true
|
belongs_to :account, inverse_of: :media_attachments, optional: true
|
||||||
belongs_to :status, inverse_of: :media_attachments, optional: true
|
belongs_to :status, inverse_of: :media_attachments, optional: true
|
||||||
|
|
Loading…
Reference in New Issue