💥 Change the account profile link format

This commit is contained in:
2025-08-10 00:56:48 +08:00
parent da57936d92
commit 963470b693
2 changed files with 8 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ public class AccountProfile : ModelBase, IIdentifiedResource
[MaxLength(1024)] public string? Pronouns { get; set; }
[MaxLength(1024)] public string? TimeZone { get; set; }
[MaxLength(1024)] public string? Location { get; set; }
[Column(TypeName = "jsonb")] public Dictionary<string, string>? Links { get; set; }
[Column(TypeName = "jsonb")] public List<ProfileLink>? Links { get; set; }
public Instant? Birthday { get; set; }
public Instant? LastSeenAt { get; set; }
@@ -208,6 +208,12 @@ public class AccountProfile : ModelBase, IIdentifiedResource
public string ResourceIdentifier => $"account:profile:{Id}";
}
public class ProfileLink
{
public string Name { get; set; } = string.Empty;
public string Url { get; set; } = string.Empty;
}
public class AccountContact : ModelBase
{
public Guid Id { get; set; }