Skip to content
Snippets Groups Projects
Commit 7e47a810 authored by Karen Konou's avatar Karen Konou
Browse files

help i am not good with git

parents 5c5b228f a44e532f
No related branches found
No related tags found
1 merge request!796Feature/thread muting
Pipeline #7269 failed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment