Implement Instance Moderation Notes (#31529)

This commit is contained in:
Emelia Smith 2025-06-25 10:15:44 +02:00 committed by GitHub
commit 72f2f35bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 295 additions and 15 deletions

View file

@ -21,6 +21,7 @@ class Instance < ApplicationRecord
belongs_to :unavailable_domain
has_many :accounts, dependent: nil
has_many :moderation_notes, class_name: 'InstanceModerationNote', dependent: :destroy
end
scope :searchable, -> { where.not(domain: DomainBlock.select(:domain)) }