[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: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

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