Fix Likes on postman
This commit is contained in:
parent
e4a65130f8
commit
be1aadcd4c
@ -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));
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user