mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-25 04:15:12 +01:00
Fix replies.
This commit is contained in:
parent
bd247727e2
commit
f45dc475c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user