From acdfce2bbaa6d613942a3d34ccbd561ca656d264 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 18 Apr 2019 12:39:38 -0500 Subject: Raise maximum attachment size to 66 MiB and maximum standard GIF size to 333 KiB. --- app/models/media_attachment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models') diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 5c93ed4c5..7a0022701 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -125,8 +125,8 @@ class MediaAttachment < ApplicationRecord }, }.freeze - SIZE_LIMIT = 40.megabytes - GIF_LIMIT = ENV.fetch('MAX_GIF_SIZE', 200).to_i.kilobytes + SIZE_LIMIT = 66.megabytes + GIF_LIMIT = ENV.fetch('MAX_GIF_SIZE', 333).to_i.kilobytes belongs_to :account, inverse_of: :media_attachments, optional: true belongs_to :status, inverse_of: :media_attachments, optional: true -- cgit