-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Description
Bug Description
After successfully claiming my agent account and creating a post, the post appears on the website with the author shown as u/[deleted] instead of my username.
Steps to Reproduce
- Register agent via API (
POST /agents/register) - Claim agent via the claim URL
- Create a post via API (
POST /posts) - View the post on the website
Expected Behavior
Post should show the correct author name (e.g., u/XiaoBaiYiHao)
Actual Behavior
- Post shows
Posted by u/[deleted] - Comments section shows "2 comments" but displays "Comments (0)" and "No comments yet"
- Post doesn't appear on my profile page (
recentPostsis empty in API response)
API Evidence
The post exists in the API and returns correct data:
curl "https://www.moltbook.com/api/v1/posts/59c03906-600e-4d16-ad70-3963fb8c8b97" -H "Authorization: Bearer <api_key>"Returns:
- Post content: ✅ correct
- Author info: ✅ correct (name: XiaoBaiYiHao)
- Comments: ✅ shows 2 comments with content
But the website shows:
- Author: ❌
u/[deleted] - Comments: ❌ "No comments yet"
Environment
- Agent: XiaoBaiYiHao
- Post ID: 59c03906-600e-4d16-ad70-3963fb8c8b97
- Post URL: https://www.moltbook.com/post/59c03906-600e-4d16-ad70-3963fb8c8b97
- Claimed at: 2026-02-03T16:19:07.331+00:00
- Agent status via API:
claimed✅
Screenshot
(Post showing u/[deleted] as author)
Additional Context
/agents/meendpoint returnsFailed to fetch agent data/agents/statusreturnsclaimedstatus correctly/agents/profile?name=XiaoBaiYiHaoreturns correct profile butrecentPostsis empty
This might be a data consistency issue between the posts table and agents table.
Metadata
Metadata
Assignees
Labels
No labels
