@evanp/activitypub-bot 0.48.1 → 0.48.2

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/CHANGELOG.md CHANGED
@@ -9,6 +9,13 @@ and this project adheres to
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ - Missing required `instance` property in /nodeinfo/2.2.
13
+
14
+ ## [0.48.2] - 2026-06-04
15
+
16
+ - Immediate expiry for actors.
17
+ - Include required 'instance' property in nodeinfo 2.2.
18
+
12
19
  ## [0.48.1] - 2026-05-28
13
20
 
14
21
  - 401 Unauthorized for authentication errors
@@ -147,7 +147,7 @@ export class RemoteObjectCache {
147
147
  if (as2obj.isActivity()) {
148
148
  offset = 24 * 60 * 60 * 1000
149
149
  } else if (as2obj.inbox) {
150
- offset = 30 * 60 * 1000
150
+ offset = -1000
151
151
  } else if (KEY_TYPES.includes(as2obj.type)) {
152
152
  offset = -1000
153
153
  } else if (COLLECTION_TYPES.includes(as2obj.type)) {
@@ -57,7 +57,8 @@ router.get('/nodeinfo/:nodeinfoVersion', async (req, res, next) => {
57
57
  activeHalfyear: data.activeHalfYearly
58
58
  }
59
59
  },
60
- metadata: {}
60
+ metadata: {},
61
+ instance: (nodeinfoVersion === '2.2') ? {} : undefined
61
62
  })
62
63
  })
63
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.48.1",
3
+ "version": "0.48.2",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",