Remove unnecessary status_update definition
authordtluna <dtluna@openmailbox.org>
Tue, 25 Apr 2017 16:47:16 +0000 (19:47 +0300)
committerdtluna <dtluna@openmailbox.org>
Tue, 25 Apr 2017 16:47:16 +0000 (19:47 +0300)
lib/pleroma/web/twitter_api/twitter_api_controller.ex

index f55db37b37662ece3fe04c85d4cd9a9826d00448..b5b829ca0532d8fd539e303f853dc21fa358bdd6 100644 (file)
@@ -12,10 +12,6 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
     |> json_reply(200, response)
   end
 
-  def status_update(conn, %{"status" => ""} = _status_data) do
-    empty_status_reply(conn)
-  end
-
   def status_update(%{assigns: %{user: user}} = conn, %{"status" => status_text} = status_data) do
     if status_text |> String.trim |> String.length != 0 do
       media_ids = extract_media_ids(status_data)