Changeset 283f618 in Klonkt for src/views/pages/admin.ejs


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/pages/admin.ejs

    reb2fe08 r283f618  
    5757      <a href="/admin/shows" class="btn"><%= t('admin.b_agenda') %></a>
    5858    <% } %>
    59     <a href="/tijdlijn" class="btn">🌐 <%= t('tl.title') %></a>
    60     <a href="/meldingen" class="btn">🔔 <%= t('notif.title') %></a>
    61     <a href="/fediverse" class="btn">🐘 <%= t('admin.b_fediverse') %></a>
    62     <a href="/blokkeren" class="btn">🚫 <%= t('blk.title') %></a>
     59    <% if (typeof apEnabled === 'undefined' || apEnabled) { %>
     60      <a href="/tijdlijn" class="btn">🌐 <%= t('tl.title') %></a>
     61      <a href="/meldingen" class="btn">🔔 <%= t('notif.title') %></a>
     62      <a href="/fediverse" class="btn">🐘 <%= t('admin.b_fediverse') %></a>
     63      <a href="/blokkeren" class="btn">🚫 <%= t('blk.title') %></a>
     64    <% } %>
    6365    <a href="/admin/updates" class="btn"><%= t('admin.b_updates') %></a>
    6466    <a href="/admin/handleiding" class="btn"><%= t('admin.b_help') %></a>
Note: See TracChangeset for help on using the changeset viewer.