Fix TwitterAPI.delete call
authorFrancis Dinh <normandy@firemail.cc>
Thu, 19 Apr 2018 00:41:12 +0000 (20:41 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Thu, 19 Apr 2018 00:43:03 +0000 (20:43 -0400)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index e1c1cb5d49deb6332506de23a753a422b213b3ce..02b4e9eb08cd05442eb6931a0b26877320e4ffdf 100644 (file)
@@ -150,7 +150,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
   end
 
   def delete_post(%{assigns: %{user: user}} = conn, %{"id" => id}) do
-    with {:ok, activity} <- TwitterAPI.delete(id, user) do
+    with {:ok, activity} <- TwitterAPI.delete(user, id) do
       render(conn, ActivityView, "activity.json", %{activity: activity, for: user})
     end
   end