Merge pull request #4345 from annando/bugfix-oembed

OEmbed function was called with the wrong class name
This commit is contained in:
Hypolite Petovan 2018-01-27 18:23:29 -05:00 committed by GitHub
commit f6fc854f8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Object\Image;
use Friendica\Util\ParseUrl;
use Friendica\Content\OEmbed;
require_once "include/bbcode.php";
require_once "include/html2plain.php";
@ -510,7 +511,7 @@ class BBCode
} else {
$scaled = $mtch[1];
}
$i = self::fetchURL($scaled);
$i = OEmbed::fetchURL($scaled);
if (! $i) {
return $srctext;
}