Skip to content

Commit

Permalink
[Bug] [API] Add language to user api (#9215)
Browse files Browse the repository at this point in the history
* add language to user api

* OK

Co-Authored-By: Lauris BH <lauris@nix.lv>
  • Loading branch information
2 people authored and techknowlogick committed Nov 30, 2019
1 parent 60c5339 commit 61c59bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 61c59bd

Please sign in to comment.