Federate likes.

This commit is contained in:
Roger Braun 2017-05-02 16:45:54 +02:00
parent 93de603966
commit 945b4b55e6
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ def like(%User{ap_id: ap_id} = user, %Object{data: %{ "id" => id}} = object) do
update_object_in_activities(object) update_object_in_activities(object)
if user.local do
Pleroma.Web.Federator.enqueue(:publish, activity)
end
{:ok, activity, object} {:ok, activity, object}
end end
end end