diff options
author | James Walker <walkah@walkah.net> | 2010-03-13 14:36:51 -0500 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-03-13 14:36:51 -0500 |
commit | 9111c5c6fe3507d69e0908d48339ddc484c64d70 (patch) | |
tree | a21957be1c5da0fe7d720e1bf611a54e46e82dfd | |
parent | 6ee536c258add47c586210cfa8815c03b4037bbe (diff) |
allow profile_url to be used in ostatus:attention
-rw-r--r-- | plugins/OStatus/actions/usersalmon.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php index c8a16e06f..15e8c1869 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!"); } |