mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #12505, convert relative urls in links and images into absolute urls, uses same logic as for emails
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user