AP Improvements for forums

This commit is contained in:
Michael 2020-08-09 18:42:25 +00:00
commit bf7128b4b2
6 changed files with 86 additions and 56 deletions

View file

@ -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();
}