From: Francis Dinh Date: Thu, 19 Apr 2018 00:41:12 +0000 (-0400) Subject: Fix TwitterAPI.delete call X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=32a26eb91048bb92abfd3c7770dc0d72855101c3;p=akkoma Fix TwitterAPI.delete call --- diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index e1c1cb5d4..02b4e9eb0 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -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