Changeset 3289a64 in Klonkt for src/views/pages


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/views/pages/post.ejs

    rc745659 r3289a64  
    337337.fedi-cact-like svg { color: #e8b04b; }
    338338.fedi-cact-like:hover { background: color-mix(in srgb, #e8b04b 15%, transparent); border-color: color-mix(in srgb, #e8b04b 50%, transparent); }
     339.fedi-cact-like.is-on { background: color-mix(in srgb, #e8b04b 18%, transparent); border-color: color-mix(in srgb, #e8b04b 60%, transparent); }
    339340.fedi-cact-boost svg { color: #2fa85a; }
    340341.fedi-cact-boost:hover { background: color-mix(in srgb, #2fa85a 15%, transparent); border-color: color-mix(in srgb, #2fa85a 50%, transparent); }
Note: See TracChangeset for help on using the changeset viewer.