1
0

enhance: I LITERALLY HATE MASTODON'S FILE SIZE LIMIT

Signed-off-by: 무라쿠모 <space@psec.dev>
This commit is contained in:
オスカー、 2024-05-22 15:19:05 +09:00
parent b6ab5fd675
commit 7046d2ac75
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -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