AP Improvements for forums
This commit is contained in:
parent
e733055485
commit
bf7128b4b2
6 changed files with 86 additions and 56 deletions
|
@ -34,7 +34,7 @@ function subthread_content(App $a)
|
|||
|
||||
$item_id = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : 0);
|
||||
|
||||
if (!Item::performActivity($item_id, 'follow')) {
|
||||
if (!Item::performActivity($item_id, 'follow', local_user())) {
|
||||
Logger::info('Following item failed', ['item' => $item_id]);
|
||||
throw new HTTPException\BadRequestException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue