mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-02 13:03:05 -05:00
Add notes to domain blocks and mutes (#193)
This commit is contained in:
parent
a37753179d
commit
47ec2eff65
@ -19,6 +19,8 @@ class AccountDomainBlock < ApplicationRecord
|
|||||||
after_create :remove_blocking_cache
|
after_create :remove_blocking_cache
|
||||||
after_destroy :remove_blocking_cache
|
after_destroy :remove_blocking_cache
|
||||||
|
|
||||||
|
has_one :note, class_name: 'Glitch::Note', as: :target
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def remove_blocking_cache
|
def remove_blocking_cache
|
||||||
|
@ -21,6 +21,8 @@ class Block < ApplicationRecord
|
|||||||
after_create :remove_blocking_cache
|
after_create :remove_blocking_cache
|
||||||
after_destroy :remove_blocking_cache
|
after_destroy :remove_blocking_cache
|
||||||
|
|
||||||
|
has_one :note, class_name: 'Glitch::Note', as: :target
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def remove_blocking_cache
|
def remove_blocking_cache
|
||||||
|
@ -22,6 +22,8 @@ class Mute < ApplicationRecord
|
|||||||
after_create :remove_blocking_cache
|
after_create :remove_blocking_cache
|
||||||
after_destroy :remove_blocking_cache
|
after_destroy :remove_blocking_cache
|
||||||
|
|
||||||
|
has_one :note, class_name: 'Glitch::Note', as: :target
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def remove_blocking_cache
|
def remove_blocking_cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user