From 1e64472343cf694e94fddda935845d4455b19531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Fri, 27 Sep 2024 18:58:19 +0900 Subject: [PATCH] fix: increase media size limit --- app/lib/request.rb | 2 +- app/models/account.rb | 4 ++-- app/models/concerns/account/avatar.rb | 2 +- app/models/concerns/account/header.rb | 2 +- app/models/custom_emoji.rb | 2 +- app/models/media_attachment.rb | 4 ++-- app/models/preview_card_provider.rb | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/lib/request.rb b/app/lib/request.rb index d7da9fe63c..ac18bd2601 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -233,7 +233,7 @@ class Request contents end - def body_with_limit(limit = 1.megabyte) + def body_with_limit(limit = 30.megabyte) require_limit_not_exceeded!(limit) contents = truncated_body(limit) diff --git a/app/models/account.rb b/app/models/account.rb index 078d7aaa05..afae0e3df5 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -72,9 +72,9 @@ class Account < ApplicationRecord MENTION_RE = %r{(?