From: Roger Braun Date: Wed, 3 May 2017 15:41:55 +0000 (+0200) Subject: Add announce federation. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=861a294cdae313c4c2edfc9840bf1083da0acd6e;p=akkoma Add announce federation. --- 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