@fedify/fedify 1.0.0-dev.395 → 1.0.0-dev.397
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/CHANGES.md +9 -0
- package/README.md +2 -1
- package/esm/mod.js +2 -1
- package/esm/webfinger/handler.js +11 -0
- package/package.json +1 -1
- package/types/mod.d.ts +2 -1
- package/types/mod.d.ts.map +1 -1
- package/types/webfinger/handler.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -28,12 +28,21 @@ To be released.
|
|
28
28
|
- Added `attachSignature()` function.
|
29
29
|
- Added `detachSignature()` function.
|
30
30
|
|
31
|
+
- WebFinger responses now include <http://webfinger.net/rel/avatar> links
|
32
|
+
if the `Actor` object returned by the actor dispatcher has `icon`/`icons`
|
33
|
+
property.
|
34
|
+
|
35
|
+
- The `fedify inbox` command now sends `Delete(Application)` activities when
|
36
|
+
it's terminated so that the peers can clean up data related to the temporary
|
37
|
+
actor. [[#135]]
|
38
|
+
|
31
39
|
- Added more log messages using the [LogTape] library. Currently the below
|
32
40
|
logger categories are used:
|
33
41
|
|
34
42
|
- `["fedify", "sig", "ld"]`
|
35
43
|
|
36
44
|
[Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
45
|
+
[#135]: https://github.com/dahlia/fedify/issues/135
|
37
46
|
|
38
47
|
|
39
48
|
Version 0.15.1
|
package/README.md
CHANGED
@@ -25,7 +25,7 @@ Currently, Fedify provides the following features out of the box:
|
|
25
25
|
extensions)
|
26
26
|
- [WebFinger] client and server
|
27
27
|
- [HTTP Signatures]
|
28
|
-
- [Object Integrity Proofs][FEP-8b32]
|
28
|
+
- [Object Integrity Proofs][FEP-8b32] & [Linked Data Signatures]
|
29
29
|
- Middlewares for handling webhooks
|
30
30
|
- [NodeInfo] protocol
|
31
31
|
- Special touch for interoperability with Mastodon and few other popular
|
@@ -67,6 +67,7 @@ join our [Matrix chat space][Matrix] or [GitHub Discussions]. Or tag
|
|
67
67
|
[WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
|
68
68
|
[HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
|
69
69
|
[FEP-8b32]: https://w3id.org/fep/8b32
|
70
|
+
[Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
70
71
|
[NodeInfo]: https://nodeinfo.diaspora.software/
|
71
72
|
[GitHub Discussions]: https://github.com/dahlia/fedify/discussions
|
72
73
|
[#Fedify]: https://mastodon.social/tags/fedify
|
package/esm/mod.js
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
* extensions)
|
15
15
|
* - [WebFinger] client and server
|
16
16
|
* - [HTTP Signatures]
|
17
|
-
* - [Object Integrity Proofs][FEP-8b32]
|
17
|
+
* - [Object Integrity Proofs][FEP-8b32] & [Linked Data Signatures]
|
18
18
|
* - Middlewares for handling webhooks
|
19
19
|
* - [NodeInfo] protocol
|
20
20
|
* - Special touch for interoperability with Mastodon and few other popular
|
@@ -36,6 +36,7 @@
|
|
36
36
|
* [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
|
37
37
|
* [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
|
38
38
|
* [FEP-8b32]: https://w3id.org/fep/8b32
|
39
|
+
* [Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
39
40
|
* [NodeInfo]: https://nodeinfo.diaspora.software/
|
40
41
|
*
|
41
42
|
* @module
|
package/esm/webfinger/handler.js
CHANGED
@@ -82,6 +82,17 @@ export async function handleWebFinger(request, { context, actorDispatcher, actor
|
|
82
82
|
});
|
83
83
|
}
|
84
84
|
}
|
85
|
+
for await (const image of actor.getIcons()) {
|
86
|
+
if (image.url?.href == null)
|
87
|
+
continue;
|
88
|
+
const link = {
|
89
|
+
rel: "http://webfinger.net/rel/avatar",
|
90
|
+
href: image.url.href.toString(),
|
91
|
+
};
|
92
|
+
if (image.mediaType != null)
|
93
|
+
link.type = image.mediaType;
|
94
|
+
links.push(link);
|
95
|
+
}
|
85
96
|
const jrd = {
|
86
97
|
subject: resourceUrl.href,
|
87
98
|
aliases: resourceUrl.href === context.getActorUri(handle).href
|
package/package.json
CHANGED
package/types/mod.d.ts
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
* extensions)
|
15
15
|
* - [WebFinger] client and server
|
16
16
|
* - [HTTP Signatures]
|
17
|
-
* - [Object Integrity Proofs][FEP-8b32]
|
17
|
+
* - [Object Integrity Proofs][FEP-8b32] & [Linked Data Signatures]
|
18
18
|
* - Middlewares for handling webhooks
|
19
19
|
* - [NodeInfo] protocol
|
20
20
|
* - Special touch for interoperability with Mastodon and few other popular
|
@@ -36,6 +36,7 @@
|
|
36
36
|
* [WebFinger]: https://datatracker.ietf.org/doc/html/rfc7033
|
37
37
|
* [HTTP Signatures]: https://tools.ietf.org/html/draft-cavage-http-signatures-12
|
38
38
|
* [FEP-8b32]: https://w3id.org/fep/8b32
|
39
|
+
* [Linked Data Signatures]: https://web.archive.org/web/20170923124140/https://w3c-dvcg.github.io/ld-signatures/
|
39
40
|
* [NodeInfo]: https://nodeinfo.diaspora.software/
|
40
41
|
*
|
41
42
|
* @module
|
package/types/mod.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/webfinger/handler.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM/D;;GAEG;AACH,MAAM,WAAW,0BAA0B,CAAC,YAAY;IACtD;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAChD,OAAO,EAAE,OAAO,EAChB,EACE,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,EAAE,0BAA0B,CAAC,YAAY,CAAC,GAC1C,OAAO,CAAC,QAAQ,CAAC,
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/webfinger/handler.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM/D;;GAEG;AACH,MAAM,WAAW,0BAA0B,CAAC,YAAY;IACtD;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAChD,OAAO,EAAE,OAAO,EAChB,EACE,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,EAAE,0BAA0B,CAAC,YAAY,CAAC,GAC1C,OAAO,CAAC,QAAQ,CAAC,CA+FnB"}
|