TryGhost
OSS
Ghost
Sign in / Sign up
Open main menu
Ghost
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
29078
31661ded Moved gift-link verification into the posts/pages Content API ref https://github.com/TryGhost/Ghost/pull/29064 - the entry controller previously verified gift tokens itself and re-read the entry as a paid-member shim, giving the frontend gift-service knowledge through the proxy seam and costing a second lookup per gift view - the frontend now passes the raw ?gift token through the single entry lookup as read context; the posts/pages read endpoints resolve it, verify it against the entry being read and unlock its gated content via the same shim previews use, or reject with INVALID_GIFT_TOKEN for the frontend to strip-and-301 - the token resolves to its post id in generateCacheKeyData, before the response cache is consulted: unlocked variants are cached by resolved post id, revocations take effect immediately, and an unresolvable token can never share a cache key with a plain read - ?gift stays intentionally a site-frontend concern: the token travels as internal read context only, so the public Content API ignores the param
by Kevin Ansf...
K
Previous page
Previous
Next
Next page