projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b0d0b9
)
doc fixes
author
Francis Dinh
<normandy@firemail.cc>
Mon, 16 Apr 2018 14:59:32 +0000
(10:59 -0400)
committer
Francis Dinh
<normandy@firemail.cc>
Mon, 16 Apr 2018 14:59:32 +0000
(10:59 -0400)
lib/pleroma/web/activity_pub/utils.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/utils.ex
b/lib/pleroma/web/activity_pub/utils.ex
index c7c87667016f48f2e116e6e2ade877e7c262ff90..6a36a6c10673a938bb7fa44ad0e07e975a6a29fd 100644
(file)
--- 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,