From bf127c97ffd37153842ea4b1c072530c7409cf4d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 30 Jan 2021 15:51:46 -0500 Subject: [PATCH] Remove mod/subthread file --- doc/Addons.md | 4 ---- doc/de/Addons.md | 4 ---- mod/subthread.php | 43 ------------------------------------------- 3 files changed, 51 deletions(-) delete mode 100644 mod/subthread.php diff --git a/doc/Addons.md b/doc/Addons.md index c1861c7913..be9dd42189 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -551,10 +551,6 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Hook::callAll('about_hook', $o); -### mod/subthread.php - - Hook::callAll('post_local_end', $arr); - ### mod/profiles.php Hook::callAll('profile_post', $_POST); diff --git a/doc/de/Addons.md b/doc/de/Addons.md index 2ff7495497..a0ab58de8e 100644 --- a/doc/de/Addons.md +++ b/doc/de/Addons.md @@ -259,10 +259,6 @@ Eine komplette Liste aller Hook-Callbacks mit den zugehörigen Dateien (am 01-Ap Hook::callAll('about_hook', $o); -### mod/subthread.php - - Hook::callAll('post_local_end', $arr); - ### mod/profiles.php Hook::callAll('profile_post', $_POST); diff --git a/mod/subthread.php b/mod/subthread.php deleted file mode 100644 index 93992d8daa..0000000000 --- a/mod/subthread.php +++ /dev/null @@ -1,43 +0,0 @@ -. - * - */ - -use Friendica\App; -use Friendica\Network\HTTPException; -use Friendica\Core\Logger; -use Friendica\Core\Session; -use Friendica\Model\Item; -use Friendica\Util\Strings; - -function subthread_content(App $a) -{ - if (!Session::isAuthenticated()) { - throw new HTTPException\ForbiddenException(); - } - - $item_id = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : 0); - - if (!Item::performActivity($item_id, 'follow', local_user())) { - Logger::info('Following item failed', ['item' => $item_id]); - throw new HTTPException\BadRequestException(); - } - Logger::info('Followed item', ['item' => $item_id]); - return; -}