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 '