Skip to content
Snippets Groups Projects
Commit 8e6ed525 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: add img regex for html news

parent 14910553
No related branches found
No related tags found
2 merge requests!96release V1.10.0,!48Dev
...@@ -56,6 +56,8 @@ export class PostsController { ...@@ -56,6 +56,8 @@ export class PostsController {
post.feature_image = `https://${this.configService.config.host}/blog/content${ post.feature_image = `https://${this.configService.config.host}/blog/content${
post.feature_image.split('/content')[1] post.feature_image.split('/content')[1]
}`; }`;
const regex = /(https?:\/\/ghost):(\d*)?/g; // (https?://ghost):(\d*)?/
post.html = post.html.replace(regex, `${this.configService.config.host}`);
} }
return post; return post;
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment