Node.js based forum software built for the modern web
test: fix tests, add missing return
Barış Soner Uşaklı16d176b6ea00
diff --git a/src/controllers/write/intents.js b/src/controllers/write/intents.jsindex a17728b1d2..9c6da6acce 100644--- a/src/controllers/write/intents.js+++ b/src/controllers/write/intents.js@@ -33,6 +33,7 @@ Intents.query = async (req, res) => {const prefix = 'https://w3id.org/fep/3b86/';if (!webfinger || !webfinger?._raw?.links) {helpers.formatApiResponse(200, res, { intents });+ return;}intents = webfinger._raw.links.reduce((memo, link) => {if (link.rel.startsWith(prefix)) {