mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-10 20:04:25 +02:00
parse_url: recognize image/video/audio files + move functions into own class
This commit is contained in:
parent
0628068977
commit
e9226eaf45
5 changed files with 625 additions and 486 deletions
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file include/items.php
|
||||
*/
|
||||
|
||||
use \Friendica\ParseUrl;
|
||||
|
||||
require_once('include/bbcode.php');
|
||||
require_once('include/oembed.php');
|
||||
require_once('include/salmon.php');
|
||||
|
@ -216,9 +222,8 @@ function add_page_info_data($data) {
|
|||
}
|
||||
|
||||
function query_page_info($url, $no_photos = false, $photo = "", $keywords = false, $keyword_blacklist = "") {
|
||||
require_once("mod/parse_url.php");
|
||||
|
||||
$data = parseurl_getsiteinfo_cached($url, true);
|
||||
$data = ParseUrl::getSiteinfoCached($url, true);
|
||||
|
||||
if ($photo != "")
|
||||
$data["images"][0]["src"] = $photo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue