Save context in likes / announces.

This commit is contained in:
Roger Braun 2017-05-02 15:54:14 +02:00
commit a3e82c5c24
2 changed files with 6 additions and 2 deletions

View file

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