Add debug info

This commit is contained in:
Diogo Cordeiro 2018-08-02 07:05:50 +01:00
parent 5226ca7d81
commit 554ba6dc91
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class Activitypub_notice extends Managed_DataObject
try {
$inReplyTo = ActivityPubPlugin::grab_notice_from_url($settings['inReplyTo']);
} catch (Exception $e) {
throw new Exception('Invalid Object inReplyTo value.');
throw new Exception('Invalid Object inReplyTo value: '.$e->getMessage());
}
$act->context->replyToID = $inReplyTo->getUri();
$act->context->replyToUrl = $inReplyTo->getUrl();

View File

@ -420,7 +420,7 @@ class Activitypub_explorer
{
return false;
}
foreach ($res["orderedItems"] as $profile) {
if ($this->_lookup($profile) == false) {
common_debug('ActivityPub Explorer: Found an invalid actor for '.$profile);