Mastodon API: Remove the dot hack

This commit is contained in:
rinpatch 2019-06-18 05:04:41 +03:00
parent 49a49d3763
commit dce27de733
1 changed files with 0 additions and 9 deletions

View File

@ -544,15 +544,6 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
end
end
def post_status(conn, %{"status" => "", "media_ids" => media_ids} = params)
when length(media_ids) > 0 do
params =
params
|> Map.put("status", ".")
post_status(conn, params)
end
def post_status(%{assigns: %{user: user}} = conn, %{"status" => _} = params) do
params =
params