mirror of
https://github.com/friendica/friendica
synced 2025-05-11 05:44:10 +02:00
Fix errors in Content namespace
This commit is contained in:
parent
f628c540a4
commit
fb3a3ea7e6
8 changed files with 17 additions and 26 deletions
|
@ -8,6 +8,7 @@
|
|||
namespace Friendica\Content;
|
||||
|
||||
use DOMDocument;
|
||||
use DOMElement;
|
||||
use DOMXPath;
|
||||
use Exception;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
|
@ -83,6 +84,7 @@ class OEmbed
|
|||
$xpath->query("//link[@type='application/json+oembed'] | //link[@type='text/json+oembed']")
|
||||
as $link)
|
||||
{
|
||||
/** @var DOMElement $link */
|
||||
$href = $link->getAttributeNode('href')->nodeValue;
|
||||
// Both Youtube and Vimeo output OEmbed endpoint URL with HTTP
|
||||
// but their OEmbed endpoint is only accessible by HTTPS ¯\_(ツ)_/¯
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue