aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/thread_mute.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/thread_mute.ex')
-rw-r--r--lib/pleroma/web/thread_mute.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/thread_mute.ex b/lib/pleroma/web/thread_mute.ex
index a0d564e82..3a950f474 100644
--- a/lib/pleroma/web/thread_mute.ex
+++ b/lib/pleroma/web/thread_mute.ex
@@ -21,7 +21,8 @@ defmodule Pleroma.Web.ThreadMute 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