Changeset eacd3d6 in Klonkt for src/routes/admin-settings.js
- Timestamp:
- 06/26/2026 05:17:09 PM (2 months ago)
- Branches:
- main
- Children:
- c745659
- Parents:
- cf4cf27
- File:
-
- 1 edited
-
src/routes/admin-settings.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-settings.js
rcf4cf27 reacd3d6 167 167 }); 168 168 169 // Fediverse (ActivityPub) on/off. Off = no federation + no fediverse reactions. 169 // Site mode: Solo (ap off → no federation, no comments) or Circles (ap on). 170 // Driven by a radio (mode=solo|cirkels); legacy ap_enabled checkbox still accepted. 170 171 router.post('/ap', requireGod, (req, res) => { 171 setSetting('ap_enabled', req.body.ap_enabled ? '1' : '0'); 172 res.redirect('/admin/settings?success=' + encodeURIComponent('Fediverse-instelling opgeslagen')); 172 let enabled; 173 if (typeof req.body.mode !== 'undefined') enabled = req.body.mode === 'solo' ? '0' : '1'; 174 else enabled = req.body.ap_enabled ? '1' : '0'; 175 setSetting('ap_enabled', enabled); 176 res.redirect('/admin/settings?success=' + encodeURIComponent('Modus opgeslagen')); 173 177 }); 174 178
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)