]> source.dussan.org Git - gitea.git/commitdiff
[Bug] [API] Add language to user api (#9215)
author6543 <6543@obermui.de>
Sat, 30 Nov 2019 16:18:40 +0000 (17:18 +0100)
committertechknowlogick <techknowlogick@gitea.io>
Sat, 30 Nov 2019 16:18:40 +0000 (11:18 -0500)
* add language to user api

* OK

Co-Authored-By: Lauris BH <lauris@nix.lv>
modules/convert/convert.go

index 0fa05d08508a32678d45e561d94188e44ae95451..4479653174ca7c3654e8ffbdb519cb11f9731be2 100644 (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
 }