Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(agents): correct user-join columns in handleGetOne

nirholas14e8b1687e31
diff --git a/api/agents.js b/api/agents.js
index d5ee2037c..c34688dbe 100644
--- a/api/agents.js
+++ b/api/agents.js
@@ -192,7 +192,7 @@ export async function handleGetOne(req, res, id) {
if (!rl.success) return error(res, 429, 'rate_limited', 'too many requests');
const [row] = await sql`
- SELECT i.*, u.name as author_name, u.avatar as author_avatar
+ SELECT i.*, u.display_name as author_name, u.avatar_url as author_avatar
FROM agent_identities i
LEFT JOIN users u ON i.user_id = u.id
WHERE i.id = ${id} AND i.deleted_at IS NULL