From: Francis Dinh Date: Tue, 17 Apr 2018 08:12:16 +0000 (-0400) Subject: Remove unretweet function for now X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=85bd191291fdf0fb5f1807b3aa95913a607ddc6a;p=akkoma Remove unretweet function for now --- diff --git a/lib/pleroma/web/twitter_api/twitter_api.ex b/lib/pleroma/web/twitter_api/twitter_api.ex index 1791feb3a..c12cd7f8a 100644 --- a/lib/pleroma/web/twitter_api/twitter_api.ex +++ b/lib/pleroma/web/twitter_api/twitter_api.ex @@ -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