add theme color to /v1/health

This commit is contained in:
Yusur 2025-10-11 19:15:28 +02:00
parent 213a48130f
commit 7590773710
2 changed files with 3 additions and 1 deletions

View file

@ -81,3 +81,4 @@ class UserLoader(AuthUser):
id: int
username: str
display_name: str
theme_color: int

View file

@ -47,7 +47,8 @@ async def health():
name = app_config.app_name,
post_count = await Post.count(),
user_count = await User.active_count(),
me = Snowflake(current_user.id).to_b32l() if current_user else None
me = Snowflake(current_user.id).to_b32l() if current_user else None,
theme_color = current_user.theme_color if current_user else 0
)
return hi