mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
Phanpy never calls /accounts/:id for timeline authors — it uses the embedded account object from the status response. These had 0 counts because the timeline author data doesn't include follower stats. Fix: in-memory LRU cache (500 entries, 1h TTL) stores account stats from remote resolutions. serializeAccount() reads from cache when the actor has 0 counts, enriching embedded accounts with real data. Cache is populated by resolveRemoteAccount() (lookup, search, and /accounts/:id calls). Once a profile has been viewed once, all subsequent status embeds for that author show real counts.