Mastodon API: Remove the dot hack
authorrinpatch <rinpatch@sdf.org>
Tue, 18 Jun 2019 02:04:41 +0000 (05:04 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 18 Jun 2019 02:04:41 +0000 (05:04 +0300)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 457709578f7fba823573d7f6f9d5495481910144..0c22790f27d739567f86d71e85a02fea7318ba03 100644 (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