diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-18 05:04:41 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-18 05:04:41 +0300 |
commit | dce27de7337214618559d96093e0aa3068874f4a (patch) | |
tree | 66c8b6e2bc498da7099e64a894f0c47d33e6cc97 | |
parent | 49a49d376341262032c3d1e5d037dca9554a7b4a (diff) | |
download | pleroma-dce27de7337214618559d96093e0aa3068874f4a.tar.gz |
Mastodon API: Remove the dot hack
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index 457709578..0c22790f2 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -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 |