From 2fadac8428f3e631fed6880a6104d4b7c28fdffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Fri, 8 May 2026 20:12:12 -0400 Subject: [PATCH] chore: run formatter --- models/group/group.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/models/group/group.go b/models/group/group.go index b8894094f5..4ddc1f4d88 100644 --- a/models/group/group.go +++ b/models/group/group.go @@ -217,7 +217,6 @@ func (g *Group) IsPrivateBecauseOfParentPermissions(ctx context.Context, user *u func GetGroupByIDAndCond(ctx context.Context, id int64, cond builder.Cond) (*Group, error) { group := new(Group) - has, err := db.GetEngine(ctx). Where(cond.And(builder.Eq{"`repo_group`.id": id})).Get(group) if err != nil { @@ -456,7 +455,11 @@ func MoveGroup(ctx context.Context, group *Group, newParent int64, newSortOrder ID: group.ID, } } - + err = group.LoadOwner(ctx) + if err != nil { + return err + } + group.OwnerName = group.Owner.Name group.ParentGroupID = newParent group.SortOrder = newSortOrder for i, gg := range siblings {