@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 +5 -3
- package/package.json +1 -1
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
|
-
|
|
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
|
-
'
|
|
385
|
+
'as:Public'
|
|
384
386
|
],
|
|
385
387
|
cc: owners
|
|
386
388
|
})
|