fedimbed: fix relative redirects

This commit is contained in:
Cynthia Foxwell 2022-12-05 20:05:13 -07:00
parent 8e61b5da82
commit a0a218ce67

View file

@ -104,6 +104,9 @@ async function processUrl(msg, url) {
},
redirect: "manual",
}).then((res) => res.headers.get("location"));
if (url.startsWith("/")) {
url = urlObj.origin + url;
}
}
if (PATH_REGEX.pleroma2.test(urlObj.pathname)) {