help i am not good with git

This commit is contained in:
Karen Konou 2019-02-08 13:21:34 +01:00
commit 7e47a810a2

View file

@ -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