Fix replies.
authorRoger Braun <roger@rogerbraun.net>
Wed, 5 Apr 2017 09:59:38 +0000 (11:59 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 5 Apr 2017 09:59:38 +0000 (11:59 +0200)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index 2154f34f7de828aa55c2b385ef1f6fd6f1e1fc28..02b902d08d0d3bbcfed97809c8208c1cc6717a26 100644 (file)
@@ -12,7 +12,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
 
   def status_update(%{assigns: %{user: user}} = conn, status_data) do
     media_ids = extract_media_ids(status_data)
-    {:ok, activity} = TwitterAPI.create_status(user, %{ "status" => status_data["status"], "media_ids" => media_ids })
+    {:ok, activity} = TwitterAPI.create_status(user, Map.put(status_data, "media_ids",  media_ids ))
     conn
     |> json_reply(200, ActivityRepresenter.to_json(activity, %{user: user}))
   end