Changeset 8aa85d0 in Klonkt for src/services/PatreonService.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/services/PatreonService.js

    reef691e r8aa85d0  
    8282}
    8383
     84// Is een premium-feature beschikbaar? True als de premium-laag UIT staat (dan is
     85// niets gegate — huidige gedrag), of AAN én deze instance is entitled. False alleen
     86// als premium aan staat maar er geen geldige Patreon-koppeling is (= betaalmuur).
     87export function premiumUnlocked() {
     88  return !premiumEnabled() || isPremium();
     89}
     90
    8491export function entitlementStatus() {
    8592  return {
Note: See TracChangeset for help on using the changeset viewer.