debugging replyToID

This commit is contained in:
Evan Prodromou 2010-09-01 17:59:49 -04:00
parent 27626c3abf
commit bb9353f6e0

View File

@ -76,6 +76,7 @@ class UsersalmonAction extends SalmonAction
$context = $this->activity->context; $context = $this->activity->context;
if (!empty($context->replyToID)) { if (!empty($context->replyToID)) {
common_log(LOG_DEBUG, "Got a notice in reply to '{$context->replyToID}' ({$context->replyToUrl})");
$notice = Notice::staticGet('uri', $context->replyToID); $notice = Notice::staticGet('uri', $context->replyToID);
if (empty($notice)) { if (empty($notice)) {
throw new ClientException("In reply to unknown notice"); throw new ClientException("In reply to unknown notice");