Add notes to domain blocks and mutes (#193)

This commit is contained in:
David Yip
2018-01-18 13:35:00 -06:00
parent a37753179d
commit 47ec2eff65
3 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ class AccountDomainBlock < ApplicationRecord
after_create :remove_blocking_cache
after_destroy :remove_blocking_cache
has_one :note, class_name: 'Glitch::Note', as: :target
private
def remove_blocking_cache

View File

@@ -21,6 +21,8 @@ class Block < ApplicationRecord
after_create :remove_blocking_cache
after_destroy :remove_blocking_cache
has_one :note, class_name: 'Glitch::Note', as: :target
private
def remove_blocking_cache

View File

@@ -22,6 +22,8 @@ class Mute < ApplicationRecord
after_create :remove_blocking_cache
after_destroy :remove_blocking_cache
has_one :note, class_name: 'Glitch::Note', as: :target
private
def remove_blocking_cache