Changeset 3289a64 in Klonkt for src/config


Ignore:
Timestamp:
06/26/2026 11:30:21 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
3d37c67
Parents:
c745659
Message:

feat(fedi): comment like is a toggle too (Undo Like / un-favourite)

Symmetric to boost: ap_interactions.acted_like remembers a liked comment, the star
shows an 'on' state, and clicking again retracts it via Undo(Like) (Mastodon honours it).
sendInteraction gains an 'unlike' branch (author-only, no fanout).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/config/database.js

    rc745659 r3289a64  
    357357  ensureColumn('ap_interactions', 'parent_uri', 'TEXT'); // nesting (existing DBs)
    358358  ensureColumn('ap_interactions', 'acted_boost', 'INTEGER DEFAULT 0'); // owner boosted this comment (🔁) → can undo
     359  ensureColumn('ap_interactions', 'acted_like', 'INTEGER DEFAULT 0'); // owner liked this comment (⭐) → can undo
    359360
    360361  // Fediverse CLIENT: accounts WE follow (outbound) + the home timeline of their posts.
Note: See TracChangeset for help on using the changeset viewer.