Changeset fda08c2 in Klonkt for src/routes/posts.js


Ignore:
Timestamp:
06/26/2026 01:26:39 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
73045f9
Parents:
98ceadd
Message:

refactor(fedi): remove the 'boost latest 5' feature

Dropped at Robin's request. Featuring an account is now purely local (Cirkel) — the
only way to boost to the fediverse is the deliberate per-post 🔁. Removed: the boost5
checkbox + explain line on /volgend, the boost5 branch in /tijdlijn/follow, the
boostLatestN function + export, and the tl.boost5_* i18n keys (nl/en/de).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/posts.js

    r98ceadd rfda08c2  
    610610      if (r && r.error) q = 'error=' + encodeURIComponent(r.error === 'not_found' ? 'Account niet gevonden' : (r.error === 'unreachable' ? 'Server onbereikbaar' : 'Volgen mislukt'));
    611611      else {
    612         let msg = 'Je volgt nu ' + ((r && r.name) || handle);
    613         // Optional, one-time: boost their latest 5 posts to the fediverse.
    614         if (req.body.boost5 && r && r.actor) {
    615           const b = await ActivityPubService.boostLatestN(site, r.actor, 5).catch(() => null);
    616           if (b && b.boosted) msg += ' — ' + b.boosted + ' post(s) geboost';
    617         }
    618         q = 'success=' + encodeURIComponent(msg);
     612        q = 'success=' + encodeURIComponent('Je volgt nu ' + ((r && r.name) || handle));
    619613      }
    620614    } catch (e) { q = 'error=' + encodeURIComponent('Volgen mislukt'); }
Note: See TracChangeset for help on using the changeset viewer.