1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 12:00:06 +02:00

SEO Improvement

This commit is contained in:
DanielnetoDotCom 2020-07-22 00:06:03 -03:00
parent 0dcbdf657a
commit 59d506e167

View file

@ -2466,11 +2466,11 @@ function convertImageToOG($source, $destination){
function ogSite() { function ogSite() {
global $global, $config; global $global, $config;
echo "<!-- OpenGraph for the Site -->"; echo "<!-- OpenGraph for the Site -->";
if ($user_id = isChannel()) { if ($users_id = isChannel()) {
$imgw = 200; $imgw = 200;
$imgh = 200; $imgh = 200;
$img = User::getOGImage($user_id); $img = User::getOGImage($users_id);
$title = User::getNameIdentificationById($user_id); $title = User::getNameIdentificationById($users_id);
$url = User::getChannelLink($users_id); $url = User::getChannelLink($users_id);
?> ?>
<meta property="og:type" content="profile" /> <meta property="og:type" content="profile" />