@evanp/activitypub-bot 0.30.2 → 0.30.4

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.
@@ -10,8 +10,8 @@ router.get('/', async (req, res) => {
10
10
  })
11
11
 
12
12
  router.get('/actor', async (req, res) => {
13
- const homepage = `${req.protocol}://${req.get('host')}/`
14
- const { formatter, keyStorage } = req.app.locals
13
+ const { formatter, keyStorage, origin } = req.app.locals
14
+ const homepage = `${origin}/`
15
15
  const publicKeyPem = await keyStorage.getPublicKey(null)
16
16
  const acct = formatter.acct()
17
17
  const webfinger = acct.slice(5)
@@ -25,6 +25,7 @@ router.get('/actor', async (req, res) => {
25
25
  id: formatter.format({ server: true }),
26
26
  type: 'Service',
27
27
  to: 'as:Public',
28
+ name: username,
28
29
  preferredUsername: username,
29
30
  alsoKnownAs: acct,
30
31
  webfinger,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.30.2",
3
+ "version": "0.30.4",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",