Changeset 1d1fdc9 in Klonkt for src/routes/activitypub.js
- Timestamp:
- 09/04/2026 12:17:49 PM (4 days ago)
- Branches:
- main
- Children:
- 6d7ea52
- Parents:
- 9946a68
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
r9946a68 r1d1fdc9 14 14 import express from 'express'; 15 15 import { readFileSync } from 'fs'; 16 import db from '../config/database.js';16 import db, { isoSql } from '../config/database.js'; 17 17 import AP from '../services/ActivityPubService.js'; 18 18 import { apReadLimiter, apInboxLimiter } from '../middleware/rate-limit.js'; … … 1176 1176 AND IFNULL(ap_visibility, 'public') IN ('public', 'quiet') 1177 1177 AND pinned IS NOT NULL AND pinned > 0 1178 ORDER BY pinned DESC, COALESCE(published_at, created_at)ASC LIMIT 20`1178 ORDER BY pinned DESC, ${isoSql('COALESCE(published_at, created_at)')} ASC LIMIT 20` 1179 1179 ).all(site.id); 1180 1180 AP.sendAP(res, AP.buildFeatured(baseUrl(req), site, posts, { page: paginaNr(req) }));
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)