Changeset 837fc9c in Klonkt for src/routes/activitypub.js
- Timestamp:
- 06/27/2026 07:51:44 AM (2 months ago)
- Branches:
- main
- Children:
- 92f6976
- Parents:
- aa45208
- File:
-
- 1 edited
-
src/routes/activitypub.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
raa45208 r837fc9c 67 67 if (!site) return res.status(404).end(); 68 68 const posts = db.prepare( 69 `SELECT id, slug, title, content, cover_image_url, published_at, created_at69 `SELECT id, slug, title, content, cover_image_url, nsfw, published_at, created_at 70 70 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 71 71 ORDER BY COALESCE(published_at, created_at) DESC LIMIT 20` … … 90 90 // rank 1 last) → Mastodon flips it back to pin-rank ascending on the profile. 91 91 const posts = db.prepare( 92 `SELECT id, slug, title, content, cover_image_url, published_at, created_at92 `SELECT id, slug, title, content, cover_image_url, nsfw, published_at, created_at 93 93 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 94 94 AND pinned IS NOT NULL AND pinned > 0
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)