Remove unretweet function for now

This commit is contained in:
Francis Dinh 2018-04-17 04:12:16 -04:00
parent 42279f54cf
commit 85bd191291

View File

@ -64,13 +64,6 @@ def repeat(%User{} = user, ap_id_or_id) 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