Changeset 9d34855 in Klonkt for src/config


Ignore:
Timestamp:
06/26/2026 11:50:14 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
0a75356
Parents:
c7ecaf9
Message:

fix(news): feed like is a toggle too (like/unlike), like boost

The feed star was fire-and-forget with no state. Now ap_timeline.liked remembers it,
the star shows an 'on' state, and a second click retracts via /news/unlike (Undo Like)
— mirroring the existing boost/unboost toggle. markLiked/unmarkLiked added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config/database.js

    rc7ecaf9 r9d34855  
    414414  // A timeline post you boosted (🔁) — also shown in the Cirkel (mixed by date).
    415415  ensureColumn('ap_timeline', 'boosted', 'INTEGER DEFAULT 0');
     416  ensureColumn('ap_timeline', 'liked', 'INTEGER DEFAULT 0'); // a feed post you liked (⭐) → toggle
    416417}
    417418
Note: See TracChangeset for help on using the changeset viewer.