[COMPONENT][FreeNetwork] Restore Galaxy feed

This commit is contained in:
2022-01-10 10:17:05 +00:00
parent f40eb3955f
commit 1056bc661f
5 changed files with 13 additions and 23 deletions

View File

@@ -51,10 +51,7 @@ class Feeds extends FeedController
public function network(Request $request): array
{
Common::ensureLoggedIn();
$data = $this->query(
query: 'note-local:false',
locale: Common::currentLanguage()->getLocale(),
);
$data = $this->query('note-local:false');
return [
'_template' => 'collection/notes.html.twig',
'page_title' => _m('Meteorites'),
@@ -71,6 +68,7 @@ class Feeds extends FeedController
public function clique(Request $request): array
{
Common::ensureLoggedIn();
// TODO: maybe make this a Collection::query
$notes = DB::dql(
<<<'EOF'
SELECT n FROM \App\Entity\Note AS n
@@ -99,10 +97,7 @@ class Feeds extends FeedController
public function federated(Request $request): array
{
Common::ensureLoggedIn();
$data = $this->query(
query: '',
locale: Common::currentLanguage()->getLocale(),
);
$data = $this->query('notes-all:yeah');
return [
'_template' => 'collection/notes.html.twig',
'page_title' => _m('Galaxy'),