From d16877251a42545bfbef383b1a023aa029730c44 Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Mon, 16 Apr 2018 10:59:32 -0400 Subject: [PATCH] doc fixes --- lib/pleroma/web/activity_pub/utils.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index c7c876670..6a36a6c10 100644 --- a/lib/pleroma/web/activity_pub/utils.ex +++ b/lib/pleroma/web/activity_pub/utils.ex @@ -237,7 +237,7 @@ def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do #### Announce-related helpers @doc """ - Make announce activity data for the given actor and object + Retruns an existing announce activity if the notice has already been announced """ def get_existing_announce(actor, %{data: %{"id" => id}}) do query = @@ -258,6 +258,9 @@ def get_existing_announce(actor, %{data: %{"id" => id}}) do Repo.one(query) end + @doc """ + Make announce activity data for the given actor and object + """ def make_announce_data( %User{ap_id: ap_id} = user, %Object{data: %{"id" => id}} = object,