Fix Likes on postman

This commit is contained in:
Diogo Cordeiro 2018-08-01 00:39:03 +01:00
parent e4a65130f8
commit be1aadcd4c
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ try {
try {
$object_notice = ActivityPubPlugin::get_local_notice_from_url($data->object);
} catch (Exception $e) {
ActivityPubReturn::error("Invalid Object ID value.");
ActivityPubReturn::error("Invalid Object specified.");
}
Fave::addNew($actor_profile, $object_notice);
ActivityPubReturn::answer(Activitypub_like::like_to_array($data->actor, $object_notice));

View File

@ -164,8 +164,8 @@ class Activitypub_postman
{
$data = Activitypub_like::like_to_array(
ActivityPubPlugin::actor_uri($this->actor),
Activitypub_notice::notice_to_array($notice)
);
$notice->getUrl()
);
$data = json_encode($data);
foreach ($this->to_inbox() as $inbox) {