Update app/models/user/relationship/mute.rb
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
This commit is contained in:
parent
1ffa2e5125
commit
6f59abe9dd
|
@ -16,7 +16,7 @@ class User
|
||||||
has_many :muted_by_users, through: :passive_mute_relationships, source: :source
|
has_many :muted_by_users, through: :passive_mute_relationships, source: :source
|
||||||
end
|
end
|
||||||
|
|
||||||
# Mute an user
|
# Mute a user
|
||||||
def mute(target_user)
|
def mute(target_user)
|
||||||
raise Errors::MutingSelf if target_user == self
|
raise Errors::MutingSelf if target_user == self
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue