mirror of
https://github.com/friendica/friendica
synced 2025-04-28 21:44:22 +02:00
Add Module\Oembed and Content\OEmbed
This commit is contained in:
parent
e376e1abf6
commit
e7c53af6fa
5 changed files with 413 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
namespace Friendica\Protocol;
|
||||
|
||||
use Friendica\Content\OEmbed;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -2502,7 +2503,7 @@ class DFRN
|
|||
|
||||
$item['body'] = html2bb_video($item['body']);
|
||||
|
||||
$item['body'] = oembed_html2bbcode($item['body']);
|
||||
$item['body'] = OEmbed::HTML2BBCode($item['body']);
|
||||
|
||||
$config = \HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.DefinitionImpl', null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue