Skip to content

feat: X engagement actions (repost, bookmark, follow, lookup, search) - #31

Merged
alihesari merged 5 commits into
mainfrom
feature/x-engagement
Oct 18, 2026
Merged

alihesari merged 5 commits into
mainfrom
feature/x-engagement

Conversation

@alihesari

Copy link
Copy Markdown
Member

What was added

  • fopost accounts x follow <account-id> --user-id <id> and ... x unfollow over Accounts.FollowXUser / UnfollowXUser (POST /accounts/{id}/x/follow|unfollow).
  • fopost x post <post-id> --account <id> over Inbox.GetXPost (GET /x/posts/{id}?account_id=).
  • fopost x search --account <id> --q <query> [--max-results N] [--next-token T] over Inbox.SearchXPosts (GET /x/search); the human view prints the next cursor, --json carries data + meta.next_token.
  • README command list and CHANGELOG Unreleased entry, including the reconnect note for older X tokens.

Inbox repost/bookmark/unrepost/unbookmark are not in this PR: the CLI has no inbox command group today, so there is nowhere to hang them without introducing a new group.

Testing

go build ./..., go vet, gofmt -l (clean) and go test ./... all pass with a temporary local replace pointing at the feature/x-engagement worktree of fopost-go; the replace was removed before committing. New tests pin method, path, query and body for every route, the --json shapes, and that a missing --user-id is a usage failure with nothing on stdout.

Owed

  • go.mod pin to be bumped once fopost-go is tagged; CI stays red until then.
  • Depends on the API PR in fopost/fopost (feature/x-engagement-actions); merge after it, and after the fopost-go feature/x-engagement PR.

@alihesari
alihesari merged commit 534c585 into main Oct 18, 2026
0 of 3 checks passed
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