[backend/api] Add UserResponse.Host property (ISH-304)
All checks were successful
/ unit-tests (push) Successful in 28s
/ build-and-push (push) Successful in 1m52s

This commit is contained in:
Laura Hausmann 2024-05-02 01:14:52 +02:00
parent e2a970b56c
commit 459c7c1228
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 0 deletions

View file

@ -24,6 +24,7 @@ public class UserRenderer(IOptions<Config.InstanceSection> config, DatabaseConte
{
Id = user.Id,
Username = user.Username,
Host = user.Host,
DisplayName = user.DisplayName,
AvatarUrl = user.AvatarUrl ?? user.GetIdenticonUrl(config.Value),
BannerUrl = user.BannerUrl,

View file

@ -4,6 +4,7 @@ public class UserResponse
{
public required string Id { get; set; }
public required string Username { get; set; }
public required string? Host { get; set; }
public required string? DisplayName { get; set; }
public required string? AvatarUrl { get; set; }
public required string? BannerUrl { get; set; }