Add Status::MEDIA_ATTACHMENTS_LIMIT
configuration constant (#30433)
This commit is contained in:
parent
87156f57b5
commit
c61e356475
9 changed files with 15 additions and 12 deletions
|
@ -39,6 +39,8 @@ class Status < ApplicationRecord
|
|||
include Status::SnapshotConcern
|
||||
include Status::ThreadingConcern
|
||||
|
||||
MEDIA_ATTACHMENTS_LIMIT = 4
|
||||
|
||||
rate_limit by: :account, family: :statuses
|
||||
|
||||
self.discard_column = :deleted_at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue