make authenticated oembeds optional, default to false.

This commit is contained in:
zotlabs 2017-06-03 16:00:14 -07:00 committed by Mario Vavti
parent 1d3c6e7420
commit 928fce875e

View file

@ -134,7 +134,7 @@ function oembed_fetch_url($embedurl){
$txt = null; $txt = null;
// we should try to cache this and avoid a lookup on each render // we should try to cache this and avoid a lookup on each render
$zrl = is_matrix_url($embedurl); $zrl = ((get_config('system','oembed_zrl')) ? is_matrix_url($embedurl) : false);
$furl = ((local_channel() && $zrl) ? zid($embedurl) : $embedurl); $furl = ((local_channel() && $zrl) ? zid($embedurl) : $embedurl);