forked from GNUsocial/gnu-social
Add error info for missing URI in attention
This commit is contained in:
parent
13fb7bef78
commit
232b5efa7e
@ -81,6 +81,7 @@ class UsersalmonAction extends SalmonAction
|
|||||||
}
|
}
|
||||||
} 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)) {
|
||||||
|
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!");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user