]> git.mxchange.org Git - friendica.git/blobdiff - mod/subthread.php
Merge pull request #9408 from annando/announce
[friendica.git] / mod / subthread.php
index ebec978c592c9300dcd883c4c68b6cec707e1b14..93992d8daac640e3eeaa66c460d684df97a74b21 100644 (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();
        }