Changeset 5045c30 in Klonkt for src/routes/circle.js


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/routes/circle.js

    r484adf8 r5045c30  
    2929router.get('/cirkel', (req, res, next) => {
    3030  const site = res.locals.site;
    31   if (!site || !apEnabled() || ActivityPubService.autoBoostCount(site.slug) === 0) return next();
     31  if (!site || !apEnabled() || (ActivityPubService.autoBoostCount(site.slug) === 0 && ActivityPubService.boostedCount(site.slug) === 0)) return next();
    3232
    3333  const posts = ActivityPubService.getCirkelPosts(site.slug, 80).map((r) => {
Note: See TracChangeset for help on using the changeset viewer.