Add native media types and expiration to getSiteInfo
This commit is contained in:
parent
7de03eb13f
commit
69802554fd
3 changed files with 56 additions and 37 deletions
|
@ -180,28 +180,3 @@ function parse_url_content(App $a)
|
|||
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Legacy function to call ParseUrl::getSiteinfoCached
|
||||
*
|
||||
* Note: We have moved the function to ParseUrl.php. This function is only for
|
||||
* legacy support and will be remove in the future
|
||||
*
|
||||
* @param string $url The url of the page which should be scraped
|
||||
* @param bool $no_guessing If true the parse doens't search for
|
||||
* preview pictures
|
||||
* @param bool $do_oembed The false option is used by the function fetch_oembed()
|
||||
* to avoid endless loops
|
||||
*
|
||||
* @return array which contains needed data for embedding
|
||||
*
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @see ParseUrl::getSiteinfoCached()
|
||||
*
|
||||
* @deprecated since version 3.6 use ParseUrl::getSiteinfoCached instead
|
||||
*/
|
||||
function parseurl_getsiteinfo_cached($url, $no_guessing = false, $do_oembed = true)
|
||||
{
|
||||
$siteinfo = ParseUrl::getSiteinfoCached($url, $no_guessing, $do_oembed);
|
||||
return $siteinfo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue