forked from GNUsocial/gnu-social
allow profile_url to be used in ostatus:attention
This commit is contained in:
parent
6ee536c258
commit
9111c5c6fe
@ -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!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user