X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsubthread.php;h=93992d8daac640e3eeaa66c460d684df97a74b21;hb=ba868ea7d7e9c228a61cffd78f19e45a5641e8da;hp=24b20d49dc6dca26c202def892fd5299b98f443a;hpb=825a7f9f93c063cc314d29b4bfacb42398cf9bf6;p=friendica.git diff --git a/mod/subthread.php b/mod/subthread.php index 24b20d49dc..93992d8daa 100644 --- a/mod/subthread.php +++ b/mod/subthread.php @@ -34,7 +34,7 @@ function subthread_content(App $a) $item_id = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : 0); - if (!Item::performLike($item_id, 'follow')) { + if (!Item::performActivity($item_id, 'follow', local_user())) { Logger::info('Following item failed', ['item' => $item_id]); throw new HTTPException\BadRequestException(); }