about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-18 12:39:38 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commitacdfce2bbaa6d613942a3d34ccbd561ca656d264 (patch)
tree6c63fec515d8a6399a13618a31d579cbbc6f37f0 /app/models
parent1ca30982faae8fc96e8b61186165b001be04de1e (diff)
Raise maximum attachment size to 66 MiB and maximum standard GIF size to 333 KiB.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/media_attachment.rb4
1 files changed, 2 insertions, 2 deletions
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