allow profile_url to be used in ostatus:attention

This commit is contained in:
James Walker 2010-03-13 14:36:51 -05:00
parent 6ee536c258
commit 9111c5c6fe

View File

@ -82,7 +82,8 @@ class UsersalmonAction extends SalmonAction
throw new ClientException("In reply to a notice not by this user"); throw new ClientException("In reply to a notice not by this user");
} }
} else if (!empty($context->attention)) { } else if (!empty($context->attention)) {
if (!in_array($this->user->uri, $context->attention)) { if (!in_array($this->user->uri, $context->attention) &&
!in_array(common_profile_url($this->user->nickname), $context->attention)) {
common_log(LOG_ERR, "{$this->user->uri} not in attention list (".implode(',', $context->attention).")"); common_log(LOG_ERR, "{$this->user->uri} not in attention list (".implode(',', $context->attention).")");
throw new ClientException("To the attention of user(s) not including this one!"); throw new ClientException("To the attention of user(s) not including this one!");
} }