2
0

Implement Instance Moderation Notes (#31529)

This commit is contained in:
Emelia Smith
2025-06-25 10:15:44 +02:00
committed by GitHub
parent 0f9f27972d
commit 72f2f35bfb
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)) }