From 587d701d11559f3809896b182c2e82713ca8fbce Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 15 Nov 2021 17:06:34 +0000 Subject: [PATCH] [CONTROLLER][Network] Temporarily remove replies from streams, following planned changes to the Reply plugin --- src/Controller/Network.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Controller/Network.php b/src/Controller/Network.php index fe11346039..37d787bae9 100644 --- a/src/Controller/Network.php +++ b/src/Controller/Network.php @@ -44,14 +44,15 @@ use App\Entity\Note; use App\Util\Common; use App\Util\Exception\ClientException; use App\Util\Exception\NotFoundException; +use NotImplementedException; use Symfony\Component\HttpFoundation\Request; class Network extends Controller { // Can't have constants inside herestring - private $public_scope = VisibilityScope::PUBLIC; - private $instance_scope = VisibilityScope::PUBLIC | VisibilityScope::SITE; - private $message_scope = VisibilityScope::MESSAGE; + private $public_scope = VisibilityScope::PUBLIC; + private $instance_scope = VisibilityScope::PUBLIC | VisibilityScope::SITE; + private $message_scope = VisibilityScope::MESSAGE; private $subscriber_scope = VisibilityScope::PUBLIC | VisibilityScope::SUBSCRIBER; public function public(Request $request) @@ -76,6 +77,7 @@ class Network extends Controller throw new ClientException(_m('User {nickname} doesn\'t exist', ['{nickname}' => $nickname])); } + // TODO Handle replies in home stream $query = <<getId(); $notes = DB::dql('select n from App\Entity\Note n ' . 'where n.reply_to is not null and n.actor_id = :id '