aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Dinh <normandy@firemail.cc>2018-04-16 10:59:32 -0400
committerFrancis Dinh <normandy@firemail.cc>2018-04-16 10:59:32 -0400
commitd16877251a42545bfbef383b1a023aa029730c44 (patch)
treefefbd4e5f1c4969d110ae856e63829986eb9ff69
parent5b0d0b9ab2e9efba3d170a06ea3cc5c4ca33c2c9 (diff)
downloadpleroma-d16877251a42545bfbef383b1a023aa029730c44.tar.gz
doc fixes
-rw-r--r--lib/pleroma/web/activity_pub/utils.ex5
1 files changed, 4 insertions, 1 deletions
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 @@ defmodule Pleroma.Web.ActivityPub.Utils 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 @@ defmodule Pleroma.Web.ActivityPub.Utils 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,