feat: web UI chat render, panels, presence + analytics
This commit is contained in:
1 parent
75425d1bee
commit
ed469ba8dd
83 files changed
+6034
-136
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import asyncpg
|
||||
|
||||
from utils.read.models import CustomEmojiRef
|
||||
|
||||
_GET = """
|
||||
SELECT storage_key, downloaded, mime, kind FROM custom_emoji
|
||||
WHERE custom_emoji_id = $1
|
||||
"""
|
||||
|
||||
|
||||
async def current_custom_emoji(
|
||||
pool: asyncpg.Pool, custom_emoji_id: int
|
||||
) -> CustomEmojiRef | None:
|
||||
row = await pool.fetchrow(_GET, custom_emoji_id)
|
||||
return CustomEmojiRef(**dict(row)) if row else None
|
||||
Reference in new issue
Block a user