Address liking / announcing to the original author.

This commit is contained in:
Roger Braun 2017-04-15 14:16:01 +02:00
commit 4f7adb343c
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
"type" => "Like",
"actor" => ap_id,
"object" => id,
"to" => [User.ap_followers(user)]
"to" => [User.ap_followers(user), object.data["actor"]]
}
{:ok, activity} = insert(data)
@ -142,7 +142,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
"type" => "Announce",
"actor" => ap_id,
"object" => id,
"to" => [User.ap_followers(user)]
"to" => [User.ap_followers(user), object.data["actor"]]
}
{:ok, activity} = insert(data)