Node.js based forum software built for the modern web
fix: #12505, convert relative urls in links and images into absolute urls, uses same logic as for emails
Julian Lam7c4ae8eb8298
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex 6f9dac676f..9d01d5bc00 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -237,6 +237,9 @@ Mocks.note = async (post) => {}));}+ post.content = posts.relativeToAbsolute(post.content, posts.urlRegex);+ post.content = posts.relativeToAbsolute(post.content, posts.imgRegex);+let source = null;const [markdownEnabled, mentionsEnabled] = await Promise.all([plugins.isActive('nodebb-plugin-markdown'),