fix: #12505, convert relative urls in links and images into absolute urls, uses same logic as for emails

This commit is contained in:
Julian Lam
2024-04-12 15:30:59 -04:00
parent 6befff5e11
commit 7c4ae8eb82

View File

@@ -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'),