From 027adc97b22cac515ad94d928fb6424ca719cdfb Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Tue, 21 Dec 2021 12:45:15 +0000 Subject: [PATCH] [CONTROLLER][ActorController] Make ActorController extend the FeedController, so notes get filtered --- src/Core/Controller/ActorController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Controller/ActorController.php b/src/Core/Controller/ActorController.php index 241807de96..be87f3fb42 100644 --- a/src/Core/Controller/ActorController.php +++ b/src/Core/Controller/ActorController.php @@ -32,13 +32,13 @@ declare(strict_types = 1); namespace App\Core\Controller; -use App\Core\Controller; use App\Core\DB\DB; use function App\Core\I18n\_m; +use App\Core\Router\Router; use App\Util\Exception\ClientException; use App\Util\Exception\RedirectException; -abstract class ActorController extends Controller +abstract class ActorController extends FeedController { /** * Generic function that handles getting a representation for an actor from id @@ -47,7 +47,7 @@ abstract class ActorController extends Controller { $actor = DB::findOneBy('actor', ['id' => $id]); if ($actor->getIsLocal()) { - throw new RedirectException($actor->getUrl()); + throw new RedirectException(url: $actor->getUrl(Router::ABSOLUTE_PATH)); } if (empty($actor)) { throw new ClientException(_m('No such actor.'), 404);