aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-03 16:00:14 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-07 09:33:55 +0200
commit928fce875e712614e985ae2eaf8cc4f47615fe27 (patch)
tree011dc8358f24670b5bf104244b4b29f7e9577aaf /include
parent1d3c6e7420fa0c156eb94fc1a388aa7e0c25eadc (diff)
downloadvolse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.tar.gz
volse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.tar.bz2
volse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.zip
make authenticated oembeds optional, default to false.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/oembed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 5865c95d5..e35a77fa3 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -134,7 +134,7 @@ function oembed_fetch_url($embedurl){
$txt = null;
// 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);