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 { try {
$inReplyTo = ActivityPubPlugin::grab_notice_from_url($settings['inReplyTo']); $inReplyTo = ActivityPubPlugin::grab_notice_from_url($settings['inReplyTo']);
} catch (Exception $e) { } 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->replyToID = $inReplyTo->getUri();
$act->context->replyToUrl = $inReplyTo->getUrl(); $act->context->replyToUrl = $inReplyTo->getUrl();