fix: change mastodon limit
This commit is contained in:
parent
d558a3020b
commit
f5413366f9
5 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue