0
0
Fork 0

Add Status::MEDIA_ATTACHMENTS_LIMIT configuration constant (#30433)

This commit is contained in:
Matt Jankowski 2024-05-27 05:49:44 -04:00 committed by GitHub
parent 87156f57b5
commit c61e356475
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 12 deletions

View file

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