@evanp/activitypub-bot 0.21.0 → 0.21.1

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.
package/lib/botcontext.js CHANGED
@@ -369,10 +369,12 @@ export class BotContext {
369
369
  const owners = obj.attributedTo
370
370
  ? Array.from(obj.attributedTo).map((owner) => owner.id)
371
371
  : Array.from(obj.actor).map((owner) => owner.id)
372
+ const summary = `${this.#botId} shared "${await this.#nameOf(obj)}"`
372
373
  const activity = await this.#doActivity({
373
374
  type: 'Announce',
374
- summary: {
375
- en: `${this.#botId} shared "${await this.#nameOf(obj)}"`
375
+ summary,
376
+ summaryMap: {
377
+ en: summary
376
378
  },
377
379
  object: obj.id,
378
380
  to: [
@@ -380,7 +382,7 @@ export class BotContext {
380
382
  username: this.#botId,
381
383
  collection: 'followers'
382
384
  }),
383
- 'https://www.w3.org/ns/activitystreams#Public'
385
+ 'as:Public'
384
386
  ],
385
387
  cc: owners
386
388
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",