0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 20:14:28 +01:00

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

* add language to user api

* OK

Co-Authored-By: Lauris BH <lauris@nix.lv>
This commit is contained in:
6543 2019-11-30 17:18:40 +01:00 committed by techknowlogick
parent 60c5339042
commit 61c59bd695

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
}