diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-02 16:45:54 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-02 16:45:54 +0200 |
commit | 945b4b55e651341ae9452c9799f432ec2de11787 (patch) | |
tree | f45579020f544494c26c062a0a1e9bbe4b42915c /lib | |
parent | 93de6039667b9fe6f3b9019c4c2297d4f23b3a1a (diff) | |
download | pleroma-945b4b55e651341ae9452c9799f432ec2de11787.tar.gz |
Federate likes.
Diffstat (limited to 'lib')
-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 e9de3573e..12d6912df 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -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 |