mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:02:53 +00:00
Merge pull request #4345 from annando/bugfix-oembed
OEmbed function was called with the wrong class name
This commit is contained in:
commit
f6fc854f8e
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ use Friendica\Core\PConfig;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Object\Image;
|
use Friendica\Object\Image;
|
||||||
use Friendica\Util\ParseUrl;
|
use Friendica\Util\ParseUrl;
|
||||||
|
use Friendica\Content\OEmbed;
|
||||||
|
|
||||||
require_once "include/bbcode.php";
|
require_once "include/bbcode.php";
|
||||||
require_once "include/html2plain.php";
|
require_once "include/html2plain.php";
|
||||||
|
@ -510,7 +511,7 @@ class BBCode
|
||||||
} else {
|
} else {
|
||||||
$scaled = $mtch[1];
|
$scaled = $mtch[1];
|
||||||
}
|
}
|
||||||
$i = self::fetchURL($scaled);
|
$i = OEmbed::fetchURL($scaled);
|
||||||
if (! $i) {
|
if (! $i) {
|
||||||
return $srctext;
|
return $srctext;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue