mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-27 22:25:06 +01:00
Fix typo.
This commit is contained in:
parent
255a681782
commit
6877d7aaad
@ -15,7 +15,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||||||
|
|
||||||
def status_update(%{assigns: %{user: user}} = conn, %{"status" => status_text} = status_data) do
|
def status_update(%{assigns: %{user: user}} = conn, %{"status" => status_text} = status_data) do
|
||||||
with media_ids <- extract_media_ids(status_data),
|
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
|
conn
|
||||||
|> json(ActivityRepresenter.to_map(activity, %{user: user}))
|
|> json(ActivityRepresenter.to_map(activity, %{user: user}))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user