forked from GNUsocial/gnu-social
[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:
parent
1856af68b3
commit
d7039b1c5c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user