Skip to content

Commit

Permalink
Return null as description as a fallback when trying to get meta data…
Browse files Browse the repository at this point in the history
… of the link (#646)
  • Loading branch information
Kovah committed Jun 4, 2023
1 parent abcd914 commit 15c5a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Helper/HtmlMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function buildFallback(): void
$this->fallback = [
'success' => false,
'title' => parse_url($this->url, PHP_URL_HOST) ?? $this->url,
'description' => false,
'description' => null,
'thumbnail' => null,
];
}
Expand Down

0 comments on commit 15c5a06

Please sign in to comment.