Skip to content

Commit ebfde78

Browse files
committed
fix: fix bug with image in post
1 parent 585890a commit ebfde78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resolver/blog/post.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public function get($args)
77
$this->load->model('blog/post');
88
$post = $this->model_blog_post->getPost($args['id']);
99

10-
if ($post->imageId) {
11-
$thumb = wp_get_attachment_image_src($post->image_id, 'full');
12-
$thumbLazy = wp_get_attachment_image_src($post->image_id, array(10, 10));
10+
if ($post->image_id) {
11+
$thumb = wp_get_attachment_url($post->image_id, 'full');
12+
$thumbLazy = wp_get_attachment_url($post->image_id, array(10, 10));
1313
} else {
1414
$thumb = '';
1515
$thumbLazy = '';

0 commit comments

Comments
 (0)