mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-24 02:05:27 +02:00
add AvatarURL field to api groups (in modules/structs package)
This commit is contained in:
@@ -26,6 +26,7 @@ func ToAPIGroup(ctx context.Context, g *group_model.Group, actor *user_model.Use
|
||||
ParentGroupID: g.ParentGroupID,
|
||||
Link: g.GroupLink(),
|
||||
SortOrder: g.SortOrder,
|
||||
AvatarURL: g.AvatarLink(ctx),
|
||||
}
|
||||
if apiGroup.NumSubgroups, err = group_model.CountGroups(ctx, &group_model.FindGroupsOptions{
|
||||
ParentGroupID: g.ID,
|
||||
|
||||
Reference in New Issue
Block a user