Moved "privacy_image_cache" into the core. Enabled by default, can be disabled in the page settings.
This commit is contained in:
@@ -109,6 +109,8 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){
|
||||
}
|
||||
|
||||
function oembed_format_object($j){
|
||||
require_once("mod/proxy.php");
|
||||
|
||||
$a = get_app();
|
||||
$embedurl = $j->embedurl;
|
||||
$jhtml = oembed_iframe($j->embedurl,(isset($j->width) ? $j->width : null), (isset($j->height) ? $j->height : null) );
|
||||
@@ -138,8 +140,8 @@ function oembed_format_object($j){
|
||||
$ret.="<br>";
|
||||
}; break;
|
||||
case "photo": {
|
||||
$ret.= "<img width='".$j->width."' src='".$j->url."'>";
|
||||
//$ret.= "<img width='".$j->width."' height='".$j->height."' src='".$j->url."'>";
|
||||
$ret.= "<img width='".$j->width."' src='".proxy_url($j->url)."'>";
|
||||
//$ret.= "<img width='".$j->width."' height='".$j->height."' src='".proxy_url($j->url)."'>";
|
||||
$ret.="<br>";
|
||||
}; break;
|
||||
case "link": {
|
||||
|
||||
Reference in New Issue
Block a user