Federate likes.
authorRoger Braun <roger@rogerbraun.net>
Tue, 2 May 2017 14:45:54 +0000 (16:45 +0200)
committerRoger Braun <roger@rogerbraun.net>
Tue, 2 May 2017 14:45:54 +0000 (16:45 +0200)
lib/pleroma/web/activity_pub/activity_pub.ex

index e9de3573e59597579e546993e75001b9887d7de2..12d6912df06808c6e5078c9768706152b9390e42 100644 (file)
@@ -72,6 +72,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
   end