Skip to content

Commit cc33a39

Browse files
committed
WIP
1 parent a405199 commit cc33a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Article.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function hasHeroImageAuthor(): bool
114114

115115
public function heroImage($width = 400, $height = 300): string
116116
{
117-
if ($this->hero_image_url) {
117+
if ($this->hasHeroImage()) {
118118
return "{$this->hero_image_url}&fit=clip&w={$width}&h={$height}";
119119
}
120120

0 commit comments

Comments
 (0)