aboutsummaryrefslogtreecommitdiff
path: root/Timeline
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline')
-rw-r--r--Timeline/Models/Http/UserInfo.cs1
-rw-r--r--Timeline/Models/User.cs1
-rw-r--r--Timeline/Services/UserService.cs1
3 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Models/Http/UserInfo.cs b/Timeline/Models/Http/UserInfo.cs
index 0acb1a80..c9a26072 100644
--- a/Timeline/Models/Http/UserInfo.cs
+++ b/Timeline/Models/Http/UserInfo.cs
@@ -9,6 +9,7 @@ namespace Timeline.Models.Http
{
public class UserInfo
{
+ public string UniqueId { get; set; } = default!;
public string Username { get; set; } = default!;
public string Nickname { get; set; } = default!;
public bool? Administrator { get; set; } = default!;
diff --git a/Timeline/Models/User.cs b/Timeline/Models/User.cs
index 37777eba..fa780efd 100644
--- a/Timeline/Models/User.cs
+++ b/Timeline/Models/User.cs
@@ -2,6 +2,7 @@
{
public class User
{
+ public string? UniqueId { get; set; }
public string? Username { get; set; }
public string? Nickname { get; set; }
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,