Changeset 80c36a1 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 06/27/2026 01:04:55 AM (2 months ago)
- Branches:
- main
- Children:
- dcff893
- Parents:
- e390844
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
re390844 r80c36a1 240 240 url: human, 241 241 published: new Date(post.published_at || post.created_at || Date.now()).toISOString(), 242 to: [PUBLIC], 243 cc: [`${aId}/followers`], 242 // fan_only = "fans only" → followers-only visibility (delivered to your followers 243 // but not addressed to Public, so Mastodon shows it only to them and can't boost it). 244 to: post.fan_only ? [`${aId}/followers`] : [PUBLIC], 245 cc: post.fan_only ? [] : [`${aId}/followers`], 244 246 tag: Array.isArray(post.tags) ? post.tags.map((t) => ({ type: 'Hashtag', name: '#' + String(t).replace(/\s+/g, '') })) : [], 245 247 replies: `${id}/replies`,
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)