diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-03 17:41:55 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-03 17:41:55 +0200 |
commit | 861a294cdae313c4c2edfc9840bf1083da0acd6e (patch) | |
tree | 2f223413821feec13ef3a4553a873418c3f38df6 | |
parent | 138641589dffc6ba69710ec15c690b50769f07b4 (diff) | |
download | pleroma-861a294cdae313c4c2edfc9840bf1083da0acd6e.tar.gz |
Add announce federation.
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index f18f3df2e..5583a1f41 100644 --- 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 |