summaryrefslogtreecommitdiffstats
path: root/modules/convert/convert.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-11-30 17:18:40 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-11-30 11:18:40 -0500
commit61c59bd69584864ae6e8acb2590818d96c230bfb (patch)
tree16b1f618aca227cc128a84199359d716ea012551 /modules/convert/convert.go
parent60c5339042a605076482320313e8f9498dd72af9 (diff)
downloadgitea-61c59bd69584864ae6e8acb2590818d96c230bfb.tar.gz
gitea-61c59bd69584864ae6e8acb2590818d96c230bfb.zip
[Bug] [API] Add language to user api (#9215)
* add language to user api * OK Co-Authored-By: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/convert/convert.go')
-rw-r--r--modules/convert/convert.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/convert/convert.go b/modules/convert/convert.go
index 0fa05d0850..4479653174 100644
--- a/modules/convert/convert.go
+++ b/modules/convert/convert.go
@@ -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
}