add AvatarURL field to api groups (in modules/structs package)

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:00:56 -04:00
parent bc494f09ba
commit ba0c7caabb
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -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,