help i am not good with git

This commit is contained in:
Karen Konou 2019-02-08 13:21:34 +01:00
commit 7e47a810a2
1 changed files with 2 additions and 1 deletions

View File

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