diff --git a/src/posts/posts.controller.ts b/src/posts/posts.controller.ts index 4db645243384eac281c398768167d5cc7095c86f..54a41f6901b54fedbfd23795999186e9f2f4e347 100644 --- a/src/posts/posts.controller.ts +++ b/src/posts/posts.controller.ts @@ -57,7 +57,7 @@ export class PostsController { 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}`); + post.html = post.html.replace(regex, `https://${this.configService.config.host}`); } return post; });