Skip to content

Commit 1ee4ca3

Browse files
committed
Fixed type detection
1 parent 5e97984 commit 1ee4ca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Embed/Adapters/Webpage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function getType()
120120
return 'video';
121121
}
122122

123-
if (($type = $this->getFromProviders('type', false)) !== 'link') {
123+
if (($type = $this->getFromProviders('type', false)) && ($type !== 'link')) {
124124
return $type;
125125
}
126126

0 commit comments

Comments
 (0)