@evanp/activitypub-bot 0.54.3 → 0.54.5
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 +16 -1
- package/lib/routes/user.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,19 @@ and this project adheres to
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.54.5] - 2026-10-15
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Publish actor `webfinger` properties with unencoded Unicode usernames and
|
|
17
|
+
domain names instead of percent-encoded usernames and IDNA A-label domains.
|
|
18
|
+
|
|
19
|
+
## [0.54.4] - 2026-10-10
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Update dependencies: mysql2, pg, pino, redis, and supertest.
|
|
24
|
+
|
|
12
25
|
## [0.54.3] - 2026-10-09
|
|
13
26
|
|
|
14
27
|
### Fixed
|
|
@@ -1766,7 +1779,9 @@ Hot patch on the `stable` branch.
|
|
|
1766
1779
|
- Docker multi-platform build workflow.
|
|
1767
1780
|
- Dependabot configuration.
|
|
1768
1781
|
|
|
1769
|
-
[Unreleased]: https://github.com/evanp/activitypub-bot/compare/v0.54.
|
|
1782
|
+
[Unreleased]: https://github.com/evanp/activitypub-bot/compare/v0.54.5...HEAD
|
|
1783
|
+
[0.54.5]: https://github.com/evanp/activitypub-bot/compare/v0.54.4...v0.54.5
|
|
1784
|
+
[0.54.4]: https://github.com/evanp/activitypub-bot/compare/v0.54.3...v0.54.4
|
|
1770
1785
|
[0.54.3]: https://github.com/evanp/activitypub-bot/compare/v0.54.2...v0.54.3
|
|
1771
1786
|
[0.54.2]: https://github.com/evanp/activitypub-bot/compare/v0.54.1...v0.54.2
|
|
1772
1787
|
[0.54.1]: https://github.com/evanp/activitypub-bot/compare/v0.54.0...v0.54.1
|
package/lib/routes/user.js
CHANGED
|
@@ -3,6 +3,7 @@ import express from 'express'
|
|
|
3
3
|
import as2 from '../activitystreams.js'
|
|
4
4
|
import { ProblemDetailsError } from '../errors/problemdetailserror.js'
|
|
5
5
|
import BotMaker from '../botmaker.js'
|
|
6
|
+
import { domainToUnicode } from 'node:url'
|
|
6
7
|
|
|
7
8
|
const router = express.Router()
|
|
8
9
|
|
|
@@ -31,8 +32,7 @@ router.get('/user/:username', async (req, res, next) => {
|
|
|
31
32
|
return next(new ProblemDetailsError(404, `User ${username} not found`))
|
|
32
33
|
}
|
|
33
34
|
const publicKeyPem = await keyStorage.getPublicKey(username)
|
|
34
|
-
const
|
|
35
|
-
const wf = acct.slice(5)
|
|
35
|
+
const webfinger = `${username}@${domainToUnicode(formatter.hostname)}`
|
|
36
36
|
const actor = await as2.import({
|
|
37
37
|
'@context': [
|
|
38
38
|
'https://www.w3.org/ns/activitystreams',
|
|
@@ -51,7 +51,7 @@ router.get('/user/:username', async (req, res, next) => {
|
|
|
51
51
|
to: 'as:Public',
|
|
52
52
|
name: bot.fullname,
|
|
53
53
|
summary: bot.description,
|
|
54
|
-
webfinger
|
|
54
|
+
webfinger,
|
|
55
55
|
publicKey: {
|
|
56
56
|
publicKeyPem,
|
|
57
57
|
id: formatter.format({ username, type: 'publickey' }),
|