Changeset dd856db in Klonkt for src/routes/admin-settings.js


Ignore:
Timestamp:
06/24/2026 05:23:33 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
48ca5fc
Parents:
34076d7
Message:

Remove hub mode (step 1/2): keystone coercion + drop hub UI

getTenancy() now only returns 'solo'|'circle' (legacy 'hub' -> 'solo'), so every
tenancy==='hub' branch is unreachable. Removed the Hub tenancy radio + hub-home
branding form from settings, and the dead hub premium gate. Solo + Circle paths
unchanged. Dead hub code (hub.js, artists.js, hub-home view, /user routing, etc.)
gets deleted in step 2.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/admin-settings.js

    r34076d7 rdd856db  
    9696
    9797    if (typeof req.body.tenancy !== 'undefined') {
    98       // Hub mode is a premium feature: only switch to hub if premium is
    99       // unlocked (premium layer off = free; on = Patreon required). Staying on
    100       // hub is always allowed, so an instance can never get stuck.
    101       if (req.body.tenancy === 'hub' && !premiumUnlocked() && getTenancy() !== 'hub') {
    102         return res.redirect('/admin/settings?error=' + encodeURIComponent('Hub-modus is een premium-functie — koppel Patreon in Beheer → Instellingen.'));
    103       }
    104       setTenancy(req.body.tenancy); // valideert naar solo | hub | circle
     98      // Hub mode is removed → setTenancy only accepts solo | circle (coerces the rest).
     99      setTenancy(req.body.tenancy);
    105100    }
    106101    if (typeof req.body.default_lang !== 'undefined') {
Note: See TracChangeset for help on using the changeset viewer.