Changeset 283f618 in Klonkt for src/views/partials


Ignore:
Timestamp:
06/26/2026 07:26:26 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
f278df9
Parents:
eb2fe08
Message:

feat(fediverse): add an ActivityPub on/off toggle (off = no federation, no comments)

A solo site can now run without the fediverse. ap_enabled (default on, Beheer ->
Instellingen). When off: /ap/*, WebFinger and NodeInfo 404 (undiscoverable), the
'from the fediverse' reactions section is hidden on posts (= no comments, since
native comments were removed), the profile follow button and the fediverse admin
links disappear. Cirkels is separate (not gated here).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/profile-header.ejs

    reb2fe08 r283f618  
    7070      <%# Follow-via-fediverse: a compact icon in the links row (keeps the header
    7171          short), and hidden for the owner — you don't follow yourself. %>
    72       <% var _showFollow = (typeof canManageFedi === 'undefined' || !canManageFedi) && site && site.slug; %>
     72      <% var _showFollow = (typeof canManageFedi === 'undefined' || !canManageFedi) && site && site.slug && (typeof apEnabled === 'undefined' || apEnabled); %>
    7373      <% if (_profileLinks.length || _showFollow) { %>
    7474        <% const _platforms = (typeof platforms_catalog !== 'undefined' && platforms_catalog) || {}; %>
Note: See TracChangeset for help on using the changeset viewer.