Skip to content

Commit 42a0999

Browse files
committed
improved the opengraph meta capturing
1 parent 26e5f14 commit 42a0999

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Providers/OpenGraph.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public function __construct(Adapter $adapter)
2525
$name = trim(strtolower($meta->getAttribute('property')));
2626
$value = $meta->getAttribute('content');
2727

28+
if (empty($name)) {
29+
$name = trim(strtolower($meta->getAttribute('name')));
30+
}
31+
2832
if (empty($name) || empty($value)) {
2933
continue;
3034
}

0 commit comments

Comments
 (0)