Changeset 603d246 in Klonkt for src/routes/admin-paid.js
- Timestamp:
- 07/21/2026 01:54:46 AM (7 weeks ago)
- Branches:
- main
- Children:
- c3d12a6
- Parents:
- e685f55
- git-author:
- Robin <roboburr@…> (07/21/2026 01:54:34 AM)
- git-committer:
- Robin <roboburr@…> (07/21/2026 01:54:46 AM)
- File:
-
- 1 edited
-
src/routes/admin-paid.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-paid.js
re685f55 r603d246 18 18 const router = express.Router(); 19 19 20 // The redirect URI the owner MUST whitelist in their Patreon client. Must match 21 // exactly what paid.js sends, or Patreon shows its own error page (which we 22 // cannot skin) instead of returning the visitor to us. 23 const redirectUri = (req) => 24 (process.env.PUBLIC_BASE_URL || `${req.protocol}://${req.get('host')}`).replace(/\/+$/, '') + '/paid/callback'; 25 20 26 function gate(req, res) { 21 27 if (!premiumUnlocked()) { … … 34 40 status: PaidPatreon.ownerStatus(res.locals.site.id), 35 41 secretReady: cryptoBoxReady(), 42 redirectUri: redirectUri(req), 36 43 saved: req.query.saved === '1', 37 44 error: req.query.error || null,
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)