Changeset 8aa85d0 in Klonkt for src/middleware/render.js


Ignore:
Timestamp:
06/16/2026 06:58:03 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
2c246d4
Parents:
eef691e
Message:

Prutter = premium Hub feature: Hub-only + behind premium gate

Prutter (DMs) is now hard-scoped to Hub mode (route 404s outside hub) and
locked behind the premium gate via the new premiumUnlocked() (= premium off
→ freely available, demos keep working; premium on → Patreon required).
UI entry points (topnav/bottom-tab/Send DM) follow the same condition.
Added to the premium description in Admin → Settings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/render.js

    reef691e r8aa85d0  
    1818import { isViewer } from './auth.js';
    1919import { getSetting } from '../services/SettingsService.js';
    20 import { isPremium as isPremiumInstance, premiumEnabled } from '../services/PatreonService.js';
     20import { isPremium as isPremiumInstance, premiumEnabled, premiumUnlocked } from '../services/PatreonService.js';
    2121import { PLATFORMS as PLATFORMS_CATALOG } from '../services/PlatformIcons.js';
    2222
     
    8080    isPremium: isPremiumInstance(),
    8181    premiumEnabled: premiumEnabled(),
     82    premiumUnlocked: premiumUnlocked(),
    8283    siteOwnerAvatar,
    8384    site: _site,
Note: See TracChangeset for help on using the changeset viewer.