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-settings.ejs

    reb2fe08 r283f618  
    117117  </section>
    118118  <% } %>
     119
     120  <%# Fediverse (ActivityPub) on/off. Off = no federation + no fediverse reactions,
     121      which (since native comments were removed) means no comments at all. %>
     122  <section class="set-card" style="margin-top:1rem">
     123    <h2><%= t('aset.fediverse') %></h2>
     124    <p class="set-help"><%= t('aset.fediverse_help') %></p>
     125    <form method="post" action="/admin/settings/ap" class="set-form">
     126      <label class="set-toggle" style="display:flex;align-items:center;gap:.6rem;cursor:pointer">
     127        <input type="checkbox" name="ap_enabled" value="1" <%= (typeof apEnabledSetting === 'undefined' || apEnabledSetting) ? 'checked' : '' %>>
     128        <span><%= t('aset.fediverse_toggle') %></span>
     129      </label>
     130      <div class="set-actions"><button type="submit" class="btn btn-primary"><%= t('aset.save') %></button></div>
     131    </form>
     132  </section>
    119133
    120134  <%# E-mail / SMTP — required for sending newsletters, notify-mails and password resets. %>
Note: See TracChangeset for help on using the changeset viewer.