Fix typo.
authorRoger Braun <roger@rogerbraun.net>
Sun, 17 Sep 2017 10:08:50 +0000 (12:08 +0200)
committerRoger Braun <roger@rogerbraun.net>
Sun, 17 Sep 2017 10:08:50 +0000 (12:08 +0200)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index 5297e45c6cbd902334ecafea322aaaa409cac6a8..434be41036624490746cb459ac941310afffe09c 100644 (file)
@@ -15,7 +15,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
 
   def status_update(%{assigns: %{user: user}} = conn, %{"status" => status_text} = status_data) do
     with media_ids <- extract_media_ids(status_data),
-         {:ok, activity} = TwitterAPI.create_status(user, Map.put(status_data, "media_ids",  media_ids)) do
+         {:ok, activity} <- TwitterAPI.create_status(user, Map.put(status_data, "media_ids",  media_ids)) do
       conn
       |> json(ActivityRepresenter.to_map(activity, %{user: user}))
     else