Remove unretweet function for now
authorFrancis Dinh <normandy@firemail.cc>
Tue, 17 Apr 2018 08:12:16 +0000 (04:12 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Tue, 17 Apr 2018 08:12:16 +0000 (04:12 -0400)
lib/pleroma/web/twitter_api/twitter_api.ex

index 1791feb3adbe25b6465a1c8e8f0ac8f8f086a198..c12cd7f8aa14a8912e89b69e04609a9e31897b38 100644 (file)
@@ -64,13 +64,6 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
     end
   end
 
-  def unrepeat(%User{} = user, ap_id_or_id) do
-    with {:ok, _announce, %{data: %{"id" => id}}} = CommonAPI.unrepeat(ap_id_or_id, user),
-         %Activity{} = activity <- Activity.get_create_activity_by_object_ap_id(id) do
-      {:ok, activity}
-    end
-  end
-
   def fav(%User{} = user, ap_id_or_id) do
     with {:ok, _announce, %{data: %{"id" => id}}} = CommonAPI.favorite(ap_id_or_id, user),
          %Activity{} = activity <- Activity.get_create_activity_by_object_ap_id(id) do