0
0
Fork 0

fix: change mastodon limit

This commit is contained in:
무라쿠모 2024-09-28 11:52:18 +09:00
parent d558a3020b
commit f5413366f9
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
5 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,7 @@ module Account::Avatar
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
LIMIT = 200.megabytes
MAX_PIXELS = 5_000_000 # 1500x500px
class_methods do
def avatar_styles(file)

View file

@ -5,7 +5,7 @@ module Account::Header
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
LIMIT = 200.megabytes
MAX_PIXELS = 750_000 # 1500x500px
MAX_PIXELS = 5_000_000 # 1500x500px
class_methods do
def header_styles(file)

View file

@ -39,7 +39,7 @@ class Status < ApplicationRecord
include Status::SnapshotConcern
include Status::ThreadingConcern
MEDIA_ATTACHMENTS_LIMIT = 4
MEDIA_ATTACHMENTS_LIMIT = 16
rate_limit by: :account, family: :statuses