Changeset 14f7cb2 in Klonkt for src/routes/posts.js
- Timestamp:
- 08/06/2026 09:10:41 AM (5 weeks ago)
- Branches:
- main
- Children:
- 68a4d1b
- Parents:
- 0e27e54
- git-author:
- Robin <roboburr@…> (08/06/2026 09:10:40 AM)
- git-committer:
- Claude (agent) <aiclaude@…> (08/06/2026 09:10:41 AM)
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
r0e27e54 r14f7cb2 806 806 liked: !!req.query.liked, 807 807 boosted: !!req.query.boosted, 808 reacted: (site && uri) ? ActivityPubService.get MyReactions(site.slug, uri) : { liked: false, boosted: false },808 reacted: (site && uri) ? ActivityPubService.getReaction(site.slug, uri) : { liked: false, boosted: false }, 809 809 siteTitle: site ? site.title : '', 810 810 }); … … 839 839 let on = false; 840 840 if (site && uri) { 841 on = !ActivityPubService.get MyReactions(site.slug, uri).liked;841 on = !ActivityPubService.getReaction(site.slug, uri).liked; 842 842 ActivityPubService.resolveRemoteNote(uri) 843 843 .then((note) => note && ActivityPubService.sendInteraction(site, on ? 'like' : 'unlike', note.object_uri || uri, note.actor_uri)) … … 857 857 let on = false; 858 858 if (site && uri) { 859 on = !ActivityPubService.get MyReactions(site.slug, uri).boosted;859 on = !ActivityPubService.getReaction(site.slug, uri).boosted; 860 860 ActivityPubService.resolveRemoteNote(uri) 861 861 .then((note) => { … … 1280 1280 let on = false; 1281 1281 if (site && note) { 1282 on = !ActivityPubService.get TimelineReaction(site.slug, note).liked;1282 on = !ActivityPubService.getReaction(site.slug, note).liked; 1283 1283 try { await ActivityPubService.sendInteraction(site, on ? 'like' : 'unlike', note, (req.body.author || '').toString()); } catch (e) { /* ignore */ } 1284 1284 ActivityPubService.setReaction(site.slug, note, 'like', on); … … 1294 1294 let on = false; 1295 1295 if (site && note) { 1296 on = !ActivityPubService.get TimelineReaction(site.slug, note).boosted;1296 on = !ActivityPubService.getReaction(site.slug, note).boosted; 1297 1297 try { await ActivityPubService.sendInteraction(site, on ? 'boost' : 'unboost', note, (req.body.author || '').toString()); } catch (e) { /* ignore */ } 1298 1298 ActivityPubService.setReaction(site.slug, note, 'boost', on); // instant UI state
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)