- Timestamp:
- 07/30/2026 09:32:40 AM (6 weeks ago)
- Branches:
- main
- Children:
- 67f7150
- Parents:
- d3a1abd
- Location:
- src
- Files:
-
- 2 edited
-
routes/activitypub.js (modified) (2 diffs)
-
services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/activitypub.js
rd3a1abd ra9da2c0 106 106 const fanClause = audience === 'friend' ? '' : "AND (fan_only IS NULL OR fan_only = 0)"; 107 107 const posts = db.prepare( 108 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, published_at, created_at108 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, c2s_attachments, published_at, created_at 109 109 FROM posts WHERE site_id = ? AND status = 'published' ${fanClause} 110 110 ORDER BY COALESCE(published_at, created_at) DESC LIMIT 20` … … 410 410 // rank 1 last) → Mastodon flips it back to pin-rank ascending on the profile. 411 411 const posts = db.prepare( 412 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, published_at, created_at412 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, c2s_attachments, published_at, created_at 413 413 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 414 414 AND pinned IS NOT NULL AND pinned > 0 -
src/services/ActivityPubService.js
rd3a1abd ra9da2c0 1921 1921 if (!site) return; 1922 1922 const recent = db.prepare( 1923 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, published_at, created_at1923 `SELECT id, slug, title, content, cover_image_url, cover_video_url, nsfw, content_warning, c2s_attachments, published_at, created_at 1924 1924 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 1925 1925 ORDER BY COALESCE(published_at, created_at) DESC LIMIT 20`
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)