Skip to content

Commit 0a408f6

Browse files
committed
fixing opengraph getTags support
1 parent da39f3f commit 0a408f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Providers/OpenGraph.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function run()
2727
$name = substr($name, 11);
2828
} elseif (strpos($name, 'og:') === 0) {
2929
$name = substr($name, 3);
30-
} else {
30+
} elseif ($name!='keywords') {
3131
continue;
3232
}
3333

@@ -81,12 +81,12 @@ public function getType()
8181
return 'video';
8282
}
8383
}
84-
84+
8585
/**
8686
* {@inheritdoc}
8787
*/
8888
public function getTags()
89-
{
89+
{
9090
return $this->bag->has('keywords') ? array_map('trim', explode(',',$this->bag->get('keywords'))) : [];
9191
}
9292

0 commit comments

Comments
 (0)