Patreon: resolve creator campaign from a single-post URL #77
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
All CI-green on dev (run 635).
A source URL like
patreon.com/posts/<slug>-<id>is a single-post permalink, not a creator page — the resolver grabbed "posts" as the vanity and failed. Now a/posts/<id>URL follows the post to its owning campaign (Patreon post API,?include=campaign), so pasting any post URL subscribes to that creator's whole feed.posts/is excluded from the vanity regex so it can't masquerade as a creator slug.Resolution order: cached override →
id:URL →/posts/<id>→ vanity (campaigns API + creator-page scrape). Unit-tested (mocked) — post→campaign resolve +/posts/not treated as a vanity.🤖 Generated with Claude Code