Changeset 5045c30 in Klonkt for src/middleware


Ignore:
Timestamp:
06/26/2026 12:00:18 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
3384e95
Parents:
484adf8
Message:

feat(cirkel): boosted posts also appear in the Cirkel (mixed by date, deduped)

Option B: when you boost (🔁) a timeline post it's marked ap_timeline.boosted and
shows in the Cirkel alongside the featured accounts' posts, sorted by date. One row
per note → a post that's both featured and boosted appears once (no double). The
Cirkel/tab now also shows when you only have boosted posts (no featured accounts).
No fediverse traffic — the boost itself is the existing user action; this only marks
it locally.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/render.js

    r484adf8 r5045c30  
    125125    // Cirkel = the artists you feature (auto-boost). Shown when AP is on and you
    126126    // auto-boost ≥1 account, or (legacy) on a circle-tenancy site.
    127     hasCirkel: !!(_site && apEnabled() && ActivityPubService.autoBoostCount(_site.slug) > 0),
     127    hasCirkel: !!(_site && apEnabled() && (ActivityPubService.autoBoostCount(_site.slug) > 0 || ActivityPubService.boostedCount(_site.slug) > 0)),
    128128    isViewer: _isViewer,
    129129    canMutate: !_isViewer,
Note: See TracChangeset for help on using the changeset viewer.