Changeset 0a75356 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 06/26/2026 11:55:09 PM (2 months ago)
- Branches:
- main
- Children:
- 7e66e7e
- Parents:
- 9d34855
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r9d34855 r0a75356 1106 1106 try { if (!_unmarkLike) _unmarkLike = db.prepare('UPDATE ap_timeline SET liked = 0 WHERE slug = ? AND id = ?'); _unmarkLike.run(slug, noteId); } catch { /* ignore */ } 1107 1107 } 1108 export function getTimelineReaction(slug, noteId) { 1109 try { const r = db.prepare('SELECT liked, boosted FROM ap_timeline WHERE slug = ? AND id = ?').get(slug, noteId); return { liked: !!(r && r.liked), boosted: !!(r && r.boosted) }; } catch { return { liked: false, boosted: false }; } 1110 } 1108 1111 export function boostedCount(slug) { 1109 1112 try { if (!_boostedCount) _boostedCount = db.prepare('SELECT COUNT(*) AS n FROM ap_timeline WHERE slug = ? AND boosted = 1'); return _boostedCount.get(slug).n; } catch { return 0; } … … 1356 1359 listOutbox, deliverOutboxDelete, 1357 1360 webfingerResolve, followActor, resolveRemoteActor, unfollowActor, listFollowing, setAutoBoost, getTimeline, sendInteraction, 1358 autoBoostCount, boostedCount, markBoosted, unmarkBoosted, markLiked, unmarkLiked, get CirkelPosts, getCirkelMembers, selfHealTimeline,1361 autoBoostCount, boostedCount, markBoosted, unmarkBoosted, markLiked, unmarkLiked, getTimelineReaction, getCirkelPosts, getCirkelMembers, selfHealTimeline, 1359 1362 getNotifications, listBlocks, isBlockedAny, blockTarget, unblock, 1360 1363 deliverWithRetry, enqueueDelivery, processDeliveryQueue, startDeliveryWorker,
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)