made a silly oopsie
authorKaren Konou <konoukaren@gmail.com>
Thu, 7 Feb 2019 21:38:54 +0000 (22:38 +0100)
committerKaren Konou <konoukaren@gmail.com>
Thu, 7 Feb 2019 21:38:54 +0000 (22:38 +0100)
lib/pleroma/web/thread_mute.ex

index 50a6219d1e5bf5645b0868524e6e099d2d8baa22..f2283cf86d8f6fa79ca35d6d83df3c5ae2c2ce5a 100644 (file)
@@ -15,7 +15,7 @@ defmodule Pleroma.Web.ThreadMute do
   def add_mute(user, id) do
     user_id = user.id
     %{data: %{"context" => context}} = Activity.get_by_id(id)
-    Pleroma.Repo.insert(%Pleroma.Web.ThreadMute{user: user_id, context: context})
+    Pleroma.Repo.insert(%Pleroma.Web.ThreadMute{}, %{user: user_id, context: context})
   end
 
   def remove_mute(user, id) do