Changeset 7b04d3b in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/20/2026 07:35:55 AM (7 weeks ago)
- Branches:
- main
- Children:
- 1485933
- Parents:
- 162c7a7
- git-author:
- Robin <roboburr@…> (07/20/2026 07:08:50 AM)
- git-committer:
- Robin <roboburr@…> (07/20/2026 07:35:55 AM)
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r162c7a7 r7b04d3b 2227 2227 if (!_insTl) { 2228 2228 _insTl = db.prepare('INSERT OR IGNORE INTO ap_timeline (id, slug, author_uri, author_name, author_handle, author_icon, author_url, content, url, published, media_json, nsfw, cw, created_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,CURRENT_TIMESTAMP)'); 2229 _listTl = db.prepare('SELECT * FROM ap_timeline WHERE slug = ? ORDER BY COALESCE(published, created_at) DESC LIMIT ? ');2229 _listTl = db.prepare('SELECT * FROM ap_timeline WHERE slug = ? ORDER BY COALESCE(published, created_at) DESC LIMIT ? OFFSET ?'); 2230 2230 _delTl = db.prepare('DELETE FROM ap_timeline WHERE id = ?'); 2231 2231 } 2232 2232 return { ins: _insTl, list: _listTl, del: _delTl }; 2233 2233 } 2234 export function getTimeline(slug, limit ) { return tlStmts().list.all(slug, limit || 50); }2234 export function getTimeline(slug, limit, offset) { return tlStmts().list.all(slug, limit || 50, offset || 0); } 2235 2235 2236 2236 // ── Cirkel = posts from the accounts you auto-boost ("feature an artist") ──
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)