Fix TwitterAPI.delete call

This commit is contained in:
Francis Dinh 2018-04-18 20:41:12 -04:00
parent 7b4f55238e
commit 32a26eb910

View file

@ -150,7 +150,7 @@ def unblock(%{assigns: %{user: user}} = conn, params) 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