help i am not good with git
This commit is contained in:
commit
7e47a810a2
|
@ -21,7 +21,8 @@ def add_mute(user, id) do
|
|||
def remove_mute(user, id) do
|
||||
user_id = Pleroma.FlakeId.from_string(user.id)
|
||||
%{data: %{"context" => context}} = Activity.get_by_id(id)
|
||||
|
||||
Ecto.Query.from(m in "thread_mutes", where: m.user_id == ^user_id and m.context == ^context)
|
||||
|> Repo.delete_all
|
||||
|> Repo.delete_all()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue