naco-api/internal/twitter
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nacorid 84fbad705d
fix: harden Twitter API client timeout, retries, and authors
- replace http.DefaultClient with a 60s-timeout client and send a
  User-Agent header
- retry 5xx and transport errors with the same ctx-aware backoff used
  for 429s; drop the unreachable trailing return and defer-in-loop body
- resolveUser returns the username; posts carry the handle (was numeric
  ID), error on 200-with-empty-data, and skip empty-ID tweets
- remove the lower limit floor so small limits pass through
- AGENTS.md: refresh the stale twitter clamp/backoff gotcha
2026-09-09 23:18:34 +00:00
..
client.go fix: harden Twitter API client timeout, retries, and authors 2026-09-09 23:18:34 +00:00
client_test.go fix: harden Twitter API client timeout, retries, and authors 2026-09-09 23:18:34 +00:00