From 61c59bd69584864ae6e8acb2590818d96c230bfb Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 30 Nov 2019 17:18:40 +0100 Subject: [PATCH] [Bug] [API] Add language to user api (#9215) * add language to user api * OK Co-Authored-By: Lauris BH --- modules/convert/convert.go | 1 + 1 file changed, 1 insertion(+) 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 }