Changeset 2c22bb5 in Klonkt for src/middleware


Ignore:
Timestamp:
06/26/2026 08:53:42 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
46f3dd6
Parents:
49b1b39
Message:

feat(cirkel): rebuild the Cirkel feed on ActivityPub (featured/auto-boosted artists)

Phase 2 of the Cirkels-on-AP rework. /cirkel now shows posts from the accounts a
site auto-boosts ("feature an artist"), sourced from ap_timeline ⋈ ap_following
(auto_boost=1); cards link to the source post. The Solo|Cirkel switcher shows
whenever the site has a cirkel (new hasCirkel local) instead of only on
circle-tenancy. Legacy circle-tenancy remote_posts are merged in until the old
pull-protocol is removed (Phase 4). New: autoBoostCount / getCirkelPosts /
getCirkelMembers.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/render.js

    r49b1b39 r2c22bb5  
    123123    canManageFedi,
    124124    apEnabled: apEnabled(),
     125    // Cirkel = the artists you feature (auto-boost). Shown when AP is on and you
     126    // auto-boost ≥1 account, or (legacy) on a circle-tenancy site.
     127    hasCirkel: !!(_site && ((apEnabled() && ActivityPubService.autoBoostCount(_site.slug) > 0) || (res.locals.tenancy || 'solo') === 'circle')),
    125128    isViewer: _isViewer,
    126129    canMutate: !_isViewer,
Note: See TracChangeset for help on using the changeset viewer.