Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9400#issuecomment-2349635776
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Sep 13, 2024
1 parent 8d082a3 commit d0be913
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions objects/functionsOpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ function generateMetaTags($videoType, $modifiedDate, $createdDate, $title, $desc
{
global $global, $config, $advancedCustom;
$ogType = determineOgType($videoType);

$title = str_replace('"', '', $title);
$description = str_replace('"', '', $description);
if (empty($customizePluginDescription)) {
if (AVideoPlugin::isEnabledByName('Customize')) {
$ec = new ExtraConfig();
Expand Down Expand Up @@ -111,11 +112,11 @@ function generateMetaTags($videoType, $modifiedDate, $createdDate, $title, $desc
$metaTags[] = "<meta property='og:type' content='{$ogType}' />";
if ($title) {
$title = getSEOTitle(html2plainText($title));
$metaTags[] = "<meta property='og:title' content='".addcslashes("'", $title)."' />";
$metaTags[] = "<meta property=\"og:title\" content=\"{$title}\" />";
$metaTags[] = "<meta name=\"twitter:title\" content=\"{$title}\"/>";
}
if ($description) {
$metaTags[] = "<meta property='og:description' content='{$description}' />";
$metaTags[] = "<meta property=\"og:description\" content=\"{$description}\" />";
$metaTags[] = "<meta name=\"twitter:description\" content=\"{$description}\"/>";
}
if ($pageURL) {
Expand Down

0 comments on commit d0be913

Please sign in to comment.