forked from mirrors/pronouns.cc
fix(backend): return display_name in GET /users/:id/members
This commit is contained in:
parent
ee25781f2b
commit
4e056632c8
1 changed files with 8 additions and 7 deletions
|
@ -26,13 +26,14 @@ func membersToMemberList(ms []db.Member, isSelf bool) []memberListResponse {
|
||||||
resps := make([]memberListResponse, len(ms))
|
resps := make([]memberListResponse, len(ms))
|
||||||
for i := range ms {
|
for i := range ms {
|
||||||
resps[i] = memberListResponse{
|
resps[i] = memberListResponse{
|
||||||
ID: ms[i].ID,
|
ID: ms[i].ID,
|
||||||
Name: ms[i].Name,
|
Name: ms[i].Name,
|
||||||
Bio: ms[i].Bio,
|
DisplayName: ms[i].DisplayName,
|
||||||
Avatar: ms[i].Avatar,
|
Bio: ms[i].Bio,
|
||||||
Links: db.NotNull(ms[i].Links),
|
Avatar: ms[i].Avatar,
|
||||||
Names: db.NotNull(ms[i].Names),
|
Links: db.NotNull(ms[i].Links),
|
||||||
Pronouns: db.NotNull(ms[i].Pronouns),
|
Names: db.NotNull(ms[i].Names),
|
||||||
|
Pronouns: db.NotNull(ms[i].Pronouns),
|
||||||
}
|
}
|
||||||
|
|
||||||
if isSelf {
|
if isSelf {
|
||||||
|
|
Loading…
Reference in a new issue