Changeset 3289a64 in Klonkt for src/routes
- Timestamp:
- 06/26/2026 11:30:21 PM (2 months ago)
- Branches:
- main
- Children:
- 3d37c67
- Parents:
- c745659
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
rc745659 r3289a64 1022 1022 ActivityPubService.setInteractionBoosted(parent.id, on); 1023 1023 } else { 1024 ActivityPubService.sendInteraction(site, 'like', parent.object_uri, parent.actor_uri) 1024 // Toggle: like an unliked comment, or un-favourite (Undo Like) if already liked. 1025 const on = !parent.acted_like; 1026 ActivityPubService.sendInteraction(site, on ? 'like' : 'unlike', parent.object_uri, parent.actor_uri) 1025 1027 .catch((e) => console.warn('[AP] reaction failed:', e.message)); 1028 ActivityPubService.setInteractionLiked(parent.id, on); 1026 1029 } 1027 1030 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)