Changeset 283f618 in Klonkt for src/services/SettingsService.js


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/services/SettingsService.js

    reb2fe08 r283f618  
    4949  setSetting('tenancy', m);
    5050}
     51
     52// ActivityPub / fediverse federation. ON by default. '0' = off: the site does
     53// not federate, /ap/* is gone, and the "from the fediverse" reactions disappear
     54// — which (since native comments were removed) means no comments at all.
     55export function apEnabled() {
     56  return getSetting('ap_enabled', '1') !== '0';
     57}
Note: See TracChangeset for help on using the changeset viewer.