Add announce federation.
authorRoger Braun <roger@rogerbraun.net>
Wed, 3 May 2017 15:41:55 +0000 (17:41 +0200)
committerRoger Braun <roger@rogerbraun.net>
Wed, 3 May 2017 15:41:55 +0000 (17:41 +0200)
lib/pleroma/web/activity_pub/activity_pub.ex

index f18f3df2e780b50fedf9942cf285809c2d4e7d72..5583a1f41b9b9d46e20faff36ed7010e47f94f68 100644 (file)
@@ -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