]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
allow profile_url to be used in ostatus:attention
authorJames Walker <walkah@walkah.net>
Sat, 13 Mar 2010 19:36:51 +0000 (14:36 -0500)
committerJames Walker <walkah@walkah.net>
Sat, 13 Mar 2010 19:36:51 +0000 (14:36 -0500)
plugins/OStatus/actions/usersalmon.php

index c8a16e06fa07392d33bc304fda20f6cdca1ad218..15e8c1869dcd76cefd8c53eb20eebfcca9b4121b 100644 (file)
@@ -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!");
             }