Node.js based forum software built for the modern web
fix: uri in fetchPublicKey must be https
Julian Lamdaeed7be7438
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex b6e9314e6e..5053f48438 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -214,7 +214,7 @@ ActivityPub.fetchPublicKey = async (uri) => {}// Validate URI format- if (!uri || typeof uri !== 'string') {+ if (!uri || typeof uri !== 'string' || !uri.startsWith('https://')) {throw new Error('[[error:activitypub.invalid-id]]');}