[backend] Add bot and cat fields to users
This commit is contained in:
parent
a79d012fcb
commit
68684dbfcb
2 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,9 @@ public class UserRenderer(IOptions<Config.InstanceSection> config, DatabaseConte
|
||||||
InstanceName = instanceName,
|
InstanceName = instanceName,
|
||||||
InstanceIconUrl = instanceIcon,
|
InstanceIconUrl = instanceIcon,
|
||||||
Emojis = emoji,
|
Emojis = emoji,
|
||||||
MovedTo = user.MovedToUri
|
MovedTo = user.MovedToUri,
|
||||||
|
IsBot = user.IsBot,
|
||||||
|
IsCat = user.IsCat
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ public class UserResponse
|
||||||
public required string? InstanceName { get; set; }
|
public required string? InstanceName { get; set; }
|
||||||
public required string? InstanceIconUrl { get; set; }
|
public required string? InstanceIconUrl { get; set; }
|
||||||
|
|
||||||
|
public bool IsBot { get; set; } = false;
|
||||||
|
public bool IsCat { get; set; } = false;
|
||||||
public List<EmojiResponse> Emojis { get; set; } = [];
|
public List<EmojiResponse> Emojis { get; set; } = [];
|
||||||
|
|
||||||
[JI(Condition = WhenWritingNull)] public string? MovedTo { get; set; }
|
[JI(Condition = WhenWritingNull)] public string? MovedTo { get; set; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue