1
0
Fork 0

old boot.php functions replaced in src/module (2)

This commit is contained in:
Michael 2022-10-19 04:35:37 +00:00 committed by Hypolite Petovan
commit c9f17e1ef5
21 changed files with 102 additions and 88 deletions

View file

@ -48,7 +48,7 @@ class Follow extends BaseModule
$itemId = intval($this->parameters['id']);
if (!Item::performActivity($itemId, 'follow', local_user())) {
if (!Item::performActivity($itemId, 'follow', Session::getLocalUser())) {
throw new HTTPException\BadRequestException($l10n->t('Unable to follow this item.'));
}