diff options
author | crupest <crupest@outlook.com> | 2020-08-08 15:35:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-08 15:35:36 +0800 |
commit | 7de532360c5e02729f41510bb5d339edc7b378db (patch) | |
tree | a99eb58b6c3abdd5b6f8fde2fa59c37e01deebea /Timeline/Services/UserService.cs | |
parent | 105444ff90af277c84edbdc6824cdd412c1f348a (diff) | |
download | timeline-7de532360c5e02729f41510bb5d339edc7b378db.tar.gz timeline-7de532360c5e02729f41510bb5d339edc7b378db.tar.bz2 timeline-7de532360c5e02729f41510bb5d339edc7b378db.zip |
Add user unique id.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r-- | Timeline/Services/UserService.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs index c20b180c..91d27965 100644 --- a/Timeline/Services/UserService.cs +++ b/Timeline/Services/UserService.cs @@ -205,6 +205,7 @@ namespace Timeline.Services {
return new User
{
+ UniqueId = entity.UniqueId,
Username = entity.Username,
Administrator = UserRoleConvert.ToBool(entity.Roles),
Nickname = string.IsNullOrEmpty(entity.Nickname) ? entity.Username : entity.Nickname,
|