diff options
author | zotlabs <mike@macgirvin.com> | 2017-06-03 16:00:14 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-06-07 09:33:55 +0200 |
commit | 928fce875e712614e985ae2eaf8cc4f47615fe27 (patch) | |
tree | 011dc8358f24670b5bf104244b4b29f7e9577aaf | |
parent | 1d3c6e7420fa0c156eb94fc1a388aa7e0c25eadc (diff) | |
download | volse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.tar.gz volse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.tar.bz2 volse-hubzilla-928fce875e712614e985ae2eaf8cc4f47615fe27.zip |
make authenticated oembeds optional, default to false.
-rwxr-xr-x | include/oembed.php | 2 |
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); |