From: James Walker Date: Sat, 13 Mar 2010 19:36:51 +0000 (-0500) Subject: allow profile_url to be used in ostatus:attention X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9111c5c6fe3507d69e0908d48339ddc484c64d70;p=quix0rs-gnu-social.git allow profile_url to be used in ostatus:attention --- diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php index c8a16e06fa..15e8c1869d 100644 --- a/plugins/OStatus/actions/usersalmon.php +++ b/plugins/OStatus/actions/usersalmon.php @@ -82,7 +82,8 @@ class UsersalmonAction extends SalmonAction throw new ClientException("In reply to a notice not by this user"); } } 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).")"); throw new ClientException("To the attention of user(s) not including this one!"); }