From be1aadcd4c165619f046f44fbc8319141b7e54f8 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 1 Aug 2018 00:39:03 +0100 Subject: [PATCH] Fix Likes on postman --- actions/inbox/Like.php | 2 +- utils/postman.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/inbox/Like.php b/actions/inbox/Like.php index e807ba2..35091e7 100755 --- a/actions/inbox/Like.php +++ b/actions/inbox/Like.php @@ -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)); diff --git a/utils/postman.php b/utils/postman.php index 26f319a..f5ed110 100755 --- a/utils/postman.php +++ b/utils/postman.php @@ -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) {