From 437472d0a6914d7c01887f2f6c840bbba2193cc1 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 31 Oct 2022 12:51:51 +0100 Subject: [PATCH] Move Follow to Contact namespace --- src/Module/{ => Contact}/Follow.php | 3 ++- static/routes.config.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename src/Module/{ => Contact}/Follow.php (99%) diff --git a/src/Module/Follow.php b/src/Module/Contact/Follow.php similarity index 99% rename from src/Module/Follow.php rename to src/Module/Contact/Follow.php index 95ad2c9ae7..08585d26f9 100644 --- a/src/Module/Follow.php +++ b/src/Module/Contact/Follow.php @@ -19,7 +19,7 @@ * */ -namespace Friendica\Module; +namespace Friendica\Module\Contact; use Friendica\App; use Friendica\BaseModule; @@ -34,6 +34,7 @@ use Friendica\Model\Item; use Friendica\Model\Post; use Friendica\Model\Profile; use Friendica\Model\User; +use Friendica\Module\Response; use Friendica\Navigation\SystemMessages; use Friendica\Network\HTTPException\ForbiddenException; use Friendica\Network\Probe; diff --git a/static/routes.config.php b/static/routes.config.php index a478ff05bb..072ee93878 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -418,7 +418,7 @@ return [ '/filed' => [Module\Search\Filed::class, [R::GET]], '/filer[/{id:\d+}]' => [Module\Filer\SaveTag::class, [R::GET]], '/filerm/{id:\d+}' => [Module\Filer\RemoveTag::class, [R::GET, R::POST]], - '/follow[/{url}]' => [Module\Follow::class, [R::GET, R::POST]], + '/follow[/{url}]' => [Module\Contact\Follow::class, [R::GET, R::POST]], '/follow_confirm' => [Module\FollowConfirm::class, [R::GET, R::POST]], '/followers/{nickname}' => [Module\ActivityPub\Followers::class, [R::GET]], '/following/{nickname}' => [Module\ActivityPub\Following::class, [R::GET]], -- 2.39.5