From: dtluna Date: Tue, 25 Apr 2017 16:47:16 +0000 (+0300) Subject: Remove unnecessary status_update definition X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c3655d1c479aa69b35820f96da3f891f6af9fcdb;p=akkoma Remove unnecessary status_update definition --- diff --git a/lib/pleroma/web/twitter_api/twitter_api_controller.ex b/lib/pleroma/web/twitter_api/twitter_api_controller.ex index f55db37b3..b5b829ca0 100644 --- a/lib/pleroma/web/twitter_api/twitter_api_controller.ex +++ b/lib/pleroma/web/twitter_api/twitter_api_controller.ex @@ -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)