Changeset 0091cb7 in Klonkt for src/routes


Ignore:
Timestamp:
06/16/2026 12:59:24 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
efdde37
Parents:
25d4041
Message:

Circles v1 — steps 4+5: Admin UI + /cirkel feed

  • Mode 'Circles' in Admin > Settings (radio + section).
  • Admin > Circle (admin-circle): add sources/list/status, per source Refresh (syncOne) + Delete (cleans up orphaned cache), and a visibility toggle (sites.allow_circle, opt-out for surfacing).
  • /cirkel feed: cached remote_posts as static cards (source/avatar, title, summary, cover, link to source). Only when tenancy=circle.
  • allow_circle column (ensureColumn) + CircleFederation respects it.
  • Output escaped everywhere + URL-scheme guards (http/https) against XSS import.

v1 functionally complete (publish + pull + UI + feed). Remaining: hardening/review.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

Location:
src/routes
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/admin-settings.js

    r25d4041 r0091cb7  
    3333router.post('/', requireGod, (req, res) => {
    3434  if (typeof req.body.tenancy !== 'undefined') {
    35     setTenancy(req.body.tenancy === 'hub' ? 'hub' : 'solo');
     35    setTenancy(req.body.tenancy); // valideert naar solo | hub | circle
    3636  }
    3737  if (typeof req.body.hub_title !== 'undefined') {
Note: See TracChangeset for help on using the changeset viewer.