aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-24 11:25:20 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-24 11:25:20 +0200
commitc8ae04a96a38b7351c2ac506c836bb9b1734d58e (patch)
treeb15646cc7746f8b18dc844a9d7c8836c29bc7896 /include/oembed.php
parent39b14b6b811ec65f8c8a812397f9ee04877cd53d (diff)
parentc809b6f95e0c9717cba9cfad62b74104fbcc878d (diff)
downloadvolse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.tar.gz
volse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.tar.bz2
volse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 08363e488..f1d9bd7d2 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -1,6 +1,8 @@
<?php /** @file */
+use Zotlabs\Lib as Zlib;
+
function oembed_replacecb($matches){
$embedurl=$matches[1];
@@ -130,7 +132,7 @@ function oembed_fetch_url($embedurl){
$txt = null;
if($action !== 'block') {
- $txt = Cache::get(App::$videowidth . $embedurl);
+ $txt = Zlib\Cache::get('[' . App::$videowidth . '] ' . $embedurl);
if(strstr($txt,'youtu') && strstr(z_root(),'https:')) {
$txt = str_replace('http:','https:',$txt);
@@ -199,7 +201,7 @@ function oembed_fetch_url($embedurl){
//save in cache
if(! get_config('system','oembed_cache_disable'))
- Cache::set(App::$videowidth . $embedurl,$txt);
+ Zlib\Cache::set('[' . App::$videowidth . '] ' . $embedurl,$txt);
}