From dce27de7337214618559d96093e0aa3068874f4a Mon Sep 17 00:00:00 2001 From: rinpatch Date: Tue, 18 Jun 2019 05:04:41 +0300 Subject: [PATCH] Mastodon API: Remove the dot hack --- lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 9 --------- 1 file changed, 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 -- 2.45.2