[COMPONENT][Feed] Correct queries and introduce new feeds

Refactor feeds and search to use a common query builder
This commit is contained in:
2021-12-23 13:27:31 +00:00
parent 1865d2b41e
commit 7d8cce3b27
27 changed files with 337 additions and 217 deletions

View File

@@ -52,7 +52,7 @@ class Security extends Controller
{
// Skip if already logged in
if ($this->getUser()) {
return $this->redirectToRoute('main_all');
return $this->redirectToRoute('root');
}
// get the login error if there is one
@@ -150,10 +150,10 @@ class Security extends Controller
$actor = Actor::create([
'nickname' => $nickname,
'is_local' => true,
'type' => Actor::PERSON,
'roles' => UserRoles::USER,
'type' => Actor::PERSON,
'roles' => UserRoles::USER,
]);
$user = LocalUser::create([
$user = LocalUser::create([
'nickname' => $nickname,
'outgoing_email' => $data['email'],
'incoming_email' => $data['email'],