@fedify/fedify 1.4.0-dev.585 → 1.4.0-dev.586
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/esm/deno.js +1 -1
- package/esm/federation/middleware.js +8 -5
- package/esm/vocab/vocab.js +173 -173
- package/package.json +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
package/esm/deno.js
CHANGED
@@ -1038,14 +1038,17 @@ export class FederationImpl {
|
|
1038
1038
|
for (const { privateKey } of keys) {
|
1039
1039
|
validateCryptoKey(privateKey, "private");
|
1040
1040
|
}
|
1041
|
-
if (activity.actorId == null) {
|
1042
|
-
logger.error("Activity {activityId} to send does not have an actor.", { activity, activityId: activity?.id?.href });
|
1043
|
-
throw new TypeError("The activity to send must have at least one actor property.");
|
1044
|
-
}
|
1045
1041
|
if (activity.id == null) {
|
1046
1042
|
const id = new URL(`urn:uuid:${dntShim.crypto.randomUUID()}`);
|
1047
1043
|
activity = activity.clone({ id });
|
1048
|
-
|
1044
|
+
logger.warn("As the activity to send does not have an id, a new id {id} has " +
|
1045
|
+
"been generated for it. However, it is recommended to explicitly " +
|
1046
|
+
"set the id for the activity.", { id: id.href });
|
1047
|
+
}
|
1048
|
+
span?.setAttribute("activitypub.activity.id", activity.id.href);
|
1049
|
+
if (activity.actorId == null) {
|
1050
|
+
logger.error("Activity {activityId} to send does not have an actor.", { activity, activityId: activity?.id?.href });
|
1051
|
+
throw new TypeError("The activity to send must have at least one actor property.");
|
1049
1052
|
}
|
1050
1053
|
const inboxes = extractInboxes({
|
1051
1054
|
recipients: Array.isArray(recipients) ? recipients : [recipients],
|