feat(backend): add pride flag models
This commit is contained in:
parent
39b0917585
commit
a70078995b
9 changed files with 346 additions and 0 deletions
|
@ -58,6 +58,8 @@ public class UserRendererService(DatabaseContext db, MemberRendererService membe
|
|||
|
||||
private string? AvatarUrlFor(User user) =>
|
||||
user.Avatar != null ? $"{config.MediaBaseUrl}/users/{user.Id}/avatars/{user.Avatar}.webp" : null;
|
||||
|
||||
public string ImageUrlFor(PrideFlag flag) => $"{config.MediaBaseUrl}/flags/{flag.Hash}.webp";
|
||||
|
||||
public record UserResponse(
|
||||
Snowflake Id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue