diff --git a/src/posts/posts.controller.ts b/src/posts/posts.controller.ts index a5241f25b29e21687b77163dba8fb48623cd479a..dcc8ebf9fb0eb9a7b3f163f66d1418b6325d0d7d 100644 --- a/src/posts/posts.controller.ts +++ b/src/posts/posts.controller.ts @@ -53,7 +53,7 @@ export class PostsController { } // Handle image display. Rewrite image URL to fit ghost infra issue. if (post.feature_image && !this.configService.isLocalConf()) { - 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] }`; }