1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-11-18 10:59:17 +00:00

Fix typo.

This commit is contained in:
Roger Braun 2017-09-17 12:08:50 +02:00
parent 255a681782
commit 6877d7aaad

View file

@ -15,7 +15,7 @@ def verify_credentials(%{assigns: %{user: user}} = conn, _params) 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