projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1386415
)
Add announce federation.
author
Roger Braun
<roger@rogerbraun.net>
Wed, 3 May 2017 15:41:55 +0000
(17:41 +0200)
committer
Roger Braun
<roger@rogerbraun.net>
Wed, 3 May 2017 15:41:55 +0000
(17:41 +0200)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index f18f3df2e780b50fedf9942cf285809c2d4e7d72..5583a1f41b9b9d46e20faff36ed7010e47f94f68 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-199,6
+199,10
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
update_object_in_activities(object)
+ if user.local do
+ Pleroma.Web.Federator.enqueue(:publish, activity)
+ end
+
{:ok, activity, object}
end