Skip to content

Commit

Permalink
Fix issue Open Graph does not display property
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed May 27, 2022
1 parent 1886cc4 commit 983852e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/library/astroid/Component/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,19 @@ public static function meta()
$document->addMeta('', 'article', ['property' => 'og:type']);
}
if (!empty($og_title)) {
$document->addMeta('', $og_title, ['property' => 'og:title']);
$document->addMeta('og:title', $og_title, ['property' => 'og:title']);
}
if (!empty($og_sitename)) {
$document->addMeta('', $og_sitename, ['property' => 'og:site_name']);
$document->addMeta('og:site_name', $og_sitename, ['property' => 'og:site_name']);
}
if (!empty($og_siteurl)) {
$document->addMeta('', $og_siteurl, ['property' => 'og:url']);
$document->addMeta('og:url', $og_siteurl, ['property' => 'og:url']);
}
if (!empty($og_description)) {
$document->addMeta('', substr($og_description, 0, 200), ['property' => 'og:description']);
$document->addMeta('og:description', substr($og_description, 0, 200), ['property' => 'og:description']);
}
if (!empty($fb_id)) {
$document->addMeta('', $fb_id, ['property' => 'fb:app_id']);
$document->addMeta('fb:app_id', $fb_id, ['property' => 'fb:app_id']);
}
if (!empty($tw_id)) {
$document->addMeta('twitter:creator', '@' . $tw_id);
Expand Down

0 comments on commit 983852e

Please sign in to comment.