Changeset 9946a68 in Klonkt for src/services/ap-timeline.js
- Timestamp:
- 09/04/2026 12:12:19 PM (5 days ago)
- Branches:
- main
- Children:
- 1d1fdc9
- Parents:
- 8151340
- File:
-
- 1 edited
-
src/services/ap-timeline.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ap-timeline.js
r8151340 r9946a68 13 13 * wireTimeline, hetzelfde injectiepatroon als guardianship en ap-c2s. 14 14 */ 15 import db, { isoSql } from '../config/database.js';15 import db, { isoSql, NU_ISO } from '../config/database.js'; 16 16 17 17 // De helper woont sinds shaer-a937 in config/database.js: elke plek die … … 30 30 export function tlStmts() { 31 31 if (!_insTl) { 32 _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)');32 _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 (?,?,?,?,?,?,?,?,?,?,?,?,?,${NU_ISO})`); 33 33 _listTl = db.prepare(`SELECT * FROM ap_timeline WHERE slug = ? ORDER BY ${STEMPEL('COALESCE(published, created_at)')} DESC LIMIT ? OFFSET ?`); 34 34 _delTl = db.prepare('DELETE FROM ap_timeline WHERE id = ?');
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)