diff options
author | nullkal <nullkal@nil.nu> | 2017-10-08 03:26:43 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-07 20:26:43 +0200 |
commit | 633426b2616e8559acfa76f4294a51afcf434fc2 (patch) | |
tree | 38759fbbd11bb3b40bc29e1a0f8ce048d15c7ce3 /app/models/account.rb | |
parent | f486ef2666dacbcb6fcd26e371bb5e945369dcfe (diff) |
Add moderation note (#5240)
* Add moderation note * Add frozen_string_literal * Make rspec pass
Diffstat (limited to 'app/models/account.rb')
-rw-r--r-- | app/models/account.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 54035d94a..88f16026d 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -90,6 +90,10 @@ class Account < ApplicationRecord has_many :reports has_many :targeted_reports, class_name: 'Report', foreign_key: :target_account_id + # Moderation notes + has_many :account_moderation_notes + has_many :targeted_moderation_notes, class_name: 'AccountModerationNote', foreign_key: :target_account_id + scope :remote, -> { where.not(domain: nil) } scope :local, -> { where(domain: nil) } scope :without_followers, -> { where(followers_count: 0) } |