mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-19 16:10:59 +00:00
help i am not good with git
This commit is contained in:
commit
7e47a810a2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue