From 7046d2ac756b8a091e114b8e3809352938bdd29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Wed, 22 May 2024 15:19:05 +0900 Subject: [PATCH] enhance: I LITERALLY HATE MASTODON'S FILE SIZE LIMIT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 무라쿠모 --- app/models/preview_card_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/preview_card_provider.rb b/app/models/preview_card_provider.rb index 756707e3f1..1657ee2a4f 100644 --- a/app/models/preview_card_provider.rb +++ b/app/models/preview_card_provider.rb @@ -23,7 +23,7 @@ class PreviewCardProvider < ApplicationRecord include Attachmentable ICON_MIME_TYPES = %w(image/x-icon image/vnd.microsoft.icon image/png).freeze - LIMIT = 1.megabyte + LIMIT = 50.megabyte validates :domain, presence: true, uniqueness: true, domain: true