Browse Source

[Bug] [API] Add language to user api (#9215)

* add language to user api

* OK

Co-Authored-By: Lauris BH <lauris@nix.lv>
for-closed-social
6543 5 years ago
committed by techknowlogick
parent
commit
61c59bd695
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/convert/convert.go

+ 1
- 0
modules/convert/convert.go View File

@ -273,6 +273,7 @@ func ToUser(user *models.User, signed, authed bool) *api.User {
result.ID = user.ID
result.IsAdmin = user.IsAdmin
result.LastLogin = user.LastLoginUnix.AsTime()
result.Language = user.Language
}
return result
}

Loading…
Cancel
Save