[COMPONENTS][Group] Create a group route added, template polished

[COMPONENTS][Circle] Removed any Group related route from shouldAddToRightPanel event
[CARDS][Profile] Block should now allow inline long nicknames to not
break
This commit is contained in:
Eliseu Amaro 2022-01-17 21:33:38 +00:00 committed by Hugo Sales
parent 1856af68b3
commit d7039b1c5c
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -218,13 +218,14 @@ class Group extends FeedController
*/ */
public function groupSettings(Request $request, string $nickname) public function groupSettings(Request $request, string $nickname)
{ {
$group = LocalGroup::getActorByNickname($nickname); $local_group = LocalGroup::getByNickname($nickname);
$group_actor = $local_group->getActor();
$actor = Common::actor(); $actor = Common::actor();
if (!\is_null($group) && $actor->canAdmin($group)) { if (!\is_null($group_actor) && $actor->canAdmin($group_actor)) {
return [ return [
'_template' => 'group/settings.html.twig', '_template' => 'group/settings.html.twig',
'group' => $group, 'group' => $group_actor,
'personal_info_form' => ActorForms::personalInfo($request, $actor, $group)->createView(), 'personal_info_form' => ActorForms::personalInfo($request, $actor, $local_group)->createView(),
'open_details_query' => $this->string('open'), 'open_details_query' => $this->string('open'),
]; ];
} else { } else {