Changeset efdde37 in Klonkt
- Timestamp:
- 06/16/2026 01:03:40 AM (3 months ago)
- Branches:
- main
- Children:
- 0b7ebbf
- Parents:
- 0091cb7
- File:
-
- 1 edited
-
src/routes/federation.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/federation.js
r0091cb7 refdde37 9 9 import express from 'express'; 10 10 import { buildActor, buildOutbox, signBody } from '../services/CircleFederation.js'; 11 import { getTenancy } from '../services/SettingsService.js'; 11 12 12 13 const router = express.Router(); … … 18 19 19 20 router.get('/.klonkt/actor.json', (req, res) => { 21 // Cirkels = solo-naar-solo; hubs publiceren geen federatie-actor. 22 if (getTenancy() === 'hub') return res.status(404).type('text/plain').send('Niet beschikbaar in hub-modus'); 20 23 const body = JSON.stringify(buildActor(baseUrl(req)), null, 2); 21 24 res.type('application/activity+json; charset=utf-8'); … … 25 28 26 29 router.get('/.klonkt/outbox.json', (req, res) => { 30 if (getTenancy() === 'hub') return res.status(404).type('text/plain').send('Niet beschikbaar in hub-modus'); 27 31 const body = JSON.stringify(buildOutbox(baseUrl(req)), null, 2); 28 32 res.type('application/activity+json; charset=utf-8');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)