mirror of
https://github.com/friendica/friendica
synced 2025-04-23 13:50:11 +00:00
When no OEmbedding is wanted, the links are now created fine again
This commit is contained in:
parent
91198cb53d
commit
a7b2db5db9
2 changed files with 4 additions and 4 deletions
|
@ -322,7 +322,7 @@ class OEmbed
|
|||
$url = str_replace(array("http://www.youtube.com/", "http://player.vimeo.com/"),
|
||||
array("https://www.youtube.com/", "https://player.vimeo.com/"), $url);
|
||||
|
||||
$o = OEmbed::fetchURL($url);
|
||||
$o = self::fetchURL($url);
|
||||
|
||||
if (!is_object($o) || $o->type == 'error') {
|
||||
throw new Exception('OEmbed failed for URL: ' . $url);
|
||||
|
@ -332,7 +332,7 @@ class OEmbed
|
|||
$o->title = $title;
|
||||
}
|
||||
|
||||
$html = OEmbed::formatObject($o);
|
||||
$html = self::formatObject($o);
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue