@evanp/activitypub-bot 0.46.1 → 0.46.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.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,18 @@ and this project adheres to
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.46.3] - 2026-05-25
13
+
14
+ ### Fixed
15
+
16
+ - Inefficient index on actorcollectionpage.
17
+
18
+ ## [0.46.2] - 2026-05-25
19
+
20
+ ### Fixed
21
+
22
+ - Over-escaped URLs in Transformer.transform()
23
+
12
24
  ## [0.46.1] - 2026-05-25
13
25
 
14
26
  ### Fixed
@@ -42,8 +42,7 @@ export class Transformer {
42
42
  const segment = segments[i]
43
43
  if (this.#isLink(segment)) continue
44
44
  segments[i] = segment.replace(url, (match) => {
45
- const escaped = this.#escape(match)
46
- return `<a href="${escaped}">${escaped}</a>`
45
+ return `<a href="${match}">${match}</a>`
47
46
  })
48
47
  }
49
48
  return { html: segments.join(''), tag }
@@ -0,0 +1,12 @@
1
+ export const id = '013-actor-outbox-createdat-username'
2
+
3
+ export async function up (connection, queryOptions = {}) {
4
+ await connection.query(`
5
+ DROP INDEX actorcollectionpage_outbox_createdat;
6
+ `, queryOptions)
7
+ await connection.query(`
8
+ CREATE INDEX actorcollectionpage_outbox_createdat_username
9
+ ON actorcollectionpage (createdat, username)
10
+ WHERE property = 'outbox';
11
+ `, queryOptions)
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evanp/activitypub-bot",
3
- "version": "0.46.1",
3
+ "version": "0.46.3",
4
4
  "description": "server-side ActivityPub bot framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",