mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 01:35:28 +00:00
Remove superflous function.
This commit is contained in:
parent
6529cab982
commit
a25adfbfee
|
@ -12,10 +12,6 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
||||||
|> json_reply(200, response)
|
|> json_reply(200, response)
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_update(conn, %{"status" => ""} = _status_data) do
|
|
||||||
empty_status_reply(conn)
|
|
||||||
end
|
|
||||||
|
|
||||||
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
|
||||||
if status_text |> String.trim |> String.length != 0 do
|
if status_text |> String.trim |> String.length != 0 do
|
||||||
media_ids = extract_media_ids(status_data)
|
media_ids = extract_media_ids(status_data)
|
||||||
|
|
Loading…
Reference in a new issue