Changeset 837fc9c in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 06/27/2026 07:51:44 AM (2 months ago)
- Branches:
- main
- Children:
- 92f6976
- Parents:
- aa45208
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
raa45208 r837fc9c 246 246 tag: Array.isArray(post.tags) ? post.tags.map((t) => ({ type: 'Hashtag', name: '#' + String(t).replace(/\s+/g, '') })) : [], 247 247 replies: `${id}/replies`, 248 // NSFW → Mastodon-style content warning: sensitive (blurs media) + a summary/spoiler 249 // (hides the whole post behind a "Gevoelige inhoud" button until the reader opens it). 250 sensitive: !!post.nsfw, 248 251 }; 252 if (post.nsfw) note.summary = 'Gevoelige inhoud'; 249 253 if (attachment.length) note.attachment = attachment; 250 254 // Playable-audio posts suppress the cover attachment (player card). Still expose … … 771 775 if (!site) return; 772 776 const recent = db.prepare( 773 `SELECT id, slug, title, content, cover_image_url, published_at, created_at777 `SELECT id, slug, title, content, cover_image_url, nsfw, published_at, created_at 774 778 FROM posts WHERE site_id = ? AND status = 'published' AND (fan_only IS NULL OR fan_only = 0) 775 779 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)