Somehow fixed the repo insert [skip-ci]
This commit is contained in:
parent
7e3ec93ed0
commit
c43f414a79
2 changed files with 4 additions and 3 deletions
|
|
@ -14,7 +14,8 @@ defmodule Pleroma.Web.ThreadMute do
|
|||
|
||||
def add_mute(user, id) do
|
||||
%{data: %{"context" => context}} = Activity.get_by_id(id)
|
||||
Repo.insert(%Pleroma.Web.ThreadMute{}, %{user_id: user.id, context: context})
|
||||
mute = %Pleroma.Web.ThreadMute{user_id: user.id, context: context}
|
||||
Repo.insert(mute)
|
||||
end
|
||||
|
||||
def remove_mute(user, id) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue