Update app/models/user/relationship/mute.rb

Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
This commit is contained in:
Georg Gadinger 2023-03-08 21:37:39 +01:00 committed by Andreas Nedbal
parent 1ffa2e5125
commit 6f59abe9dd
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class User
has_many :muted_by_users, through: :passive_mute_relationships, source: :source
end
# Mute an user
# Mute a user
def mute(target_user)
raise Errors::MutingSelf if target_user == self