summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Walker <walkah@walkah.net>2010-03-13 14:36:51 -0500
committerJames Walker <walkah@walkah.net>2010-03-13 14:36:51 -0500
commit9111c5c6fe3507d69e0908d48339ddc484c64d70 (patch)
treea21957be1c5da0fe7d720e1bf611a54e46e82dfd
parent6ee536c258add47c586210cfa8815c03b4037bbe (diff)
allow profile_url to be used in ostatus:attention
-rw-r--r--plugins/OStatus/actions/usersalmon.php3
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!");
}