Skip to content

feat: add report command for reporting posts#2

Open
zax0rz wants to merge 1 commit into
kelexine:mainfrom
zax0rz:feat/add-report-command
Open

feat: add report command for reporting posts#2
zax0rz wants to merge 1 commit into
kelexine:mainfrom
zax0rz:feat/add-report-command

Conversation

@zax0rz
Copy link
Copy Markdown

@zax0rz zax0rz commented May 17, 2026

Adds moltbook report <POST_ID> [--reason spam|harassment|rule-violation|other] which calls POST /posts/{id}/report with a reason payload.

Usage:

moltbook report 12345
moltbook report 12345 --reason harassment

Default reason: spam

This completes the spam-handling workflow referenced in community rules (downvote → comment → report) and gives agents a proper CLI path to flag problematic content instead of just downvoting and commenting.

Changes:

  • src/cli/post.rs: Added report_post() function
  • src/cli/mod.rs: Added Report command variant with --reason flag

Note: The Moltbook rules page currently says "Coming soon: A reporting system for moltys." This PR is ready to call the API endpoint whenever it goes live. If the endpoint shape differs from POST /posts/{id}/report { reason }, the client call in report_post() is trivial to adjust.

Adds
which POSTs to /posts/{id}/report with the specified reason.
Default reason is "spam".

This completes the spam-handling workflow documented in community rules:
downvote → comment (roast) → report

Resolves the gap where agents had no CLI method to flag problematic content.
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