@rmdes/indiekit-endpoint-activitypub 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,12 +198,15 @@ export function submitComposeController(mountPath, plugin) {
198
198
  const noteId = `urn:uuid:${crypto.randomUUID()}`;
199
199
  const actorUri = ctx.getActorUri(handle);
200
200
 
201
+ const followersUri = ctx.getFollowersUri(handle);
201
202
  const note = new Note({
202
203
  id: new URL(noteId),
203
204
  attribution: actorUri,
204
205
  content: content.trim(),
205
206
  inReplyTo: inReplyTo ? new URL(inReplyTo) : undefined,
206
207
  published: Temporal.Now.instant(),
208
+ to: new URL("https://www.w3.org/ns/activitystreams#Public"),
209
+ cc: followersUri,
207
210
  });
208
211
 
209
212
  const create = new Create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
5
5
  "keywords": [
6
6
  "indiekit",