mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-09 01:33:21 +00: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:
parent
60c5339042
commit
61c59bd695
1 changed files with 1 additions and 0 deletions
|
@ -273,6 +273,7 @@ func ToUser(user *models.User, signed, authed bool) *api.User {
|
||||||
result.ID = user.ID
|
result.ID = user.ID
|
||||||
result.IsAdmin = user.IsAdmin
|
result.IsAdmin = user.IsAdmin
|
||||||
result.LastLogin = user.LastLoginUnix.AsTime()
|
result.LastLogin = user.LastLoginUnix.AsTime()
|
||||||
|
result.Language = user.Language
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue