From: rinpatch Date: Tue, 18 Jun 2019 02:04:41 +0000 (+0300) Subject: Mastodon API: Remove the dot hack X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=dce27de7337214618559d96093e0aa3068874f4a;p=akkoma Mastodon API: Remove the dot hack --- 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