return $result;
}
- $siteinfo = ParseUrl::getSiteinfoCached($url);
+ $type = ParseUrl::getContentType($url);
- if (in_array($siteinfo['type'], ['image', 'video', 'audio'])) {
- switch ($siteinfo['type']) {
+ if (in_array($type, ['image', 'video', 'audio'])) {
+ switch ($type) {
case 'video':
$bbcode = "\n" . '[video]' . $url . '[/video]' . "\n";
break;
return $bbcode;
}
+ $siteinfo = ParseUrl::getSiteinfoCached($url);
+
unset($siteinfo['keywords']);
// Bypass attachment if parse url for a comment