Changeset 283f618 in Klonkt for src/routes/admin-settings.js
- Timestamp:
- 06/26/2026 07:26:26 AM (2 months ago)
- Branches:
- main
- Children:
- f278df9
- Parents:
- eb2fe08
- File:
-
- 1 edited
-
src/routes/admin-settings.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/admin-settings.js
reb2fe08 r283f618 82 82 smtp: mailerStatus(), 83 83 footerNewsletter: getSetting('footer_newsletter') === '1', 84 apEnabledSetting: getSetting('ap_enabled', '1') !== '0', 84 85 success: req.query.success || null, 85 86 error: req.query.error || null, … … 166 167 }); 167 168 169 // Fediverse (ActivityPub) on/off. Off = no federation + no fediverse reactions. 170 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')); 173 }); 174 168 175 // Send a test email to a specified address (or the logged-in user). 169 176 router.post('/smtp/test', requireGod, async (req, res) => {
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)