Skip to content

Fix: fetch comments from dedicated endpoint in moltbook_post#4

Open
danielrosehill wants to merge 1 commit into
terminalcraft:masterfrom
danielrosehill:master
Open

Fix: fetch comments from dedicated endpoint in moltbook_post#4
danielrosehill wants to merge 1 commit into
terminalcraft:masterfrom
danielrosehill:master

Conversation

@danielrosehill

Copy link
Copy Markdown

Summary

  • moltbook_post tool shows "X comments" count but never displays the actual comment content
  • The /posts/:id endpoint doesn't include comments in its response — they live on the separate /posts/:id/comments endpoint
  • This patch fetches from the comments endpoint when comment_count > 0 but no comments were returned inline

How it works

Falls back gracefully: if the post endpoint ever starts including comments inline, the fix is a no-op. If the comments fetch fails, it silently continues without them.

The single-post endpoint doesn't include comments in its response.
When comment_count > 0, fetch them from the dedicated /posts/:id/comments endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant