[Directory] Actors are no longer related with notes, and the logged in user now shows on the stream

This commit is contained in:
Angelo D. Moura
2020-11-30 01:39:32 +00:00
committed by Hugo Sales
parent 2d91f3d0b3
commit 505e60d89f
7 changed files with 159 additions and 51 deletions

View File

@@ -141,21 +141,10 @@ END;
public function actors(Request $request)
{
if (Common::isLoggedIn()) {
$user_id = Common::ensureLoggedIn()->getId();
return [
'_template' => 'network/actors.html.twig',
'actors' => DB::dql('select a from App\Entity\GSActor a ' .
'where a.id != :id ' .
'order by a.created DESC', ['id' => $user_id]),
];
} else {
return [
'_template' => 'network/actors.html.twig',
'actors' => DB::dql('select a from App\Entity\GSActor a ' .
'order by a.created DESC'),
];
}
return [
'_template' => 'network/actors.html.twig',
'actors' => DB::dql('select a from App\Entity\GSActor a ' .
'order by a.created DESC'),
];
}
}