Changeset 2c246d4 in Klonkt


Ignore:
Timestamp:
06/16/2026 07:04:18 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
544cd86
Parents:
8aa85d0
Message:

Appearance: remove dead profile_name/bio write + Prutter toggle only in Hub

(1) The save handler wrote profile_name/profile_bio which are not in the
form → every save set them to null (could wipe the federation actor name).
Removed from the UPDATE; they remain fallback-driven (title/description).
(2) Prutter toggle is now Hub-only + premium, so only show it in Hub mode
instead of on every (including solo) site where it 404s anyway.

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

Location:
src
Files:
2 edited

Legend:

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

    r8aa85d0 r2c246d4  
    263263      title = ?, description = ?, tagline = ?, language = ?,
    264264      palette = ?, accent = ?, theme_override = ?, profile_photo = ?,
    265       profile_enabled = ?, profile_name = ?, profile_bio = ?,
     265      profile_enabled = ?,
    266266      profile_links = ?,
    267267      is_public = ?, robots_index = ?, require_login_to_comment = ?,
     
    286286    f.profile_photo || null,
    287287    f.profile_enabled ? 1 : 0,
    288     (f.profile_name || '').slice(0, 100) || null,
    289     (f.profile_bio  || '').slice(0, 500) || null,
    290288    profileLinksJson,
    291289    f.is_public ? 1 : 0,
  • src/views/pages/admin-site-edit.ejs

    r8aa85d0 r2c246d4  
    145145        <span>Enable audio player + embeds</span>
    146146      </label>
     147      <%# Prutter is een Hub-only premium-functie — toggle alleen tonen in Hub-modus. %>
     148      <% if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
    147149      <label class="cb">
    148150        <input type="checkbox" name="enable_prutter" value="1" <%= site.enable_prutter ? 'checked' : '' %>>
    149         <span>Enable Prutter (direct messaging)</span>
    150       </label>
     151        <span>Prutter (DM&rsquo;s tussen leden) inschakelen <small class="form-hint-inline">— Hub-functie, premium</small></span>
     152      </label>
     153      <% } %>
    151154    </fieldset>
    152155
Note: See TracChangeset for help on using the changeset viewer.