Skip to content

users: send no comment sort by default - #361

Merged
mfederowicz merged 1 commit into
mainfrom
users-comment-default-sort
Nov 18, 2026
Merged

mfederowicz merged 1 commit into
mainfrom
users-comment-default-sort

Conversation

@mfederowicz

Copy link
Copy Markdown
Owner

users -a list_comments, watchlist_comments and favorites_comments sent likes when -s was not set. Trakt's default for these routes is now newest and the sort segment is optional (trakt/trakt-api#1087, 459a956), so without -s the CLI now sends no sort, like lists -a comments.

  • cfg: users -s default likes -> empty; cmds/command.go: the two blocks that forced likes removed.
  • UsersService.GetListComments / GetWatchlistComments / GetFavoritesComments: leave /{sort} out for an empty sort (was .../comments/); doc comments updated.
  • Console prints sorted by: newest (Trakt default) without -s.
  • Tests: cmds default/-s cases and optional-segment rows fail without the change; label helper test.
  • Docs: docs/users.md, CHANGELOG.md (Changed, CLI + Library).

Checked live by the maintainer on 2026-11-18: list_comments without -s -> .../comments, 3 comments newest first; -s likes -> .../comments/likes, other order; watchlist/favorites_comments -> no sort segment, exit 0.

AI: Claude Code wrote the changes, tests and the live-check script; reviewed by the maintainer.

@mfederowicz
mfederowicz merged commit f4592e8 into main Nov 18, 2026
6 checks passed
@mfederowicz
mfederowicz deleted the users-comment-default-sort branch November 19, 2026 13:14
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