0
0
Fork 0

Improve Report Notes and Account Moderation Notes (#30288)

This commit is contained in:
Emelia Smith 2024-05-15 15:38:36 +02:00 committed by GitHub
parent c2ca3d152f
commit 5fd56512de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 47 additions and 22 deletions

View file

@ -13,7 +13,7 @@
#
class AccountModerationNote < ApplicationRecord
CONTENT_SIZE_LIMIT = 500
CONTENT_SIZE_LIMIT = 2_000
belongs_to :account
belongs_to :target_account, class_name: 'Account'

View file

@ -13,7 +13,7 @@
#
class ReportNote < ApplicationRecord
CONTENT_SIZE_LIMIT = 500
CONTENT_SIZE_LIMIT = 2_000
belongs_to :account
belongs_to :report, inverse_of: :notes, touch: true