aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-02-17 18:14:29 +0000
committerMario <mario@mariovavti.com>2021-02-17 18:14:29 +0000
commit27577824de3918c2f44c236916f3b2faeb92ec4f (patch)
tree38447dac5a54d6d076f7220f53b01d02d054f70a /include/zot.php
parent281b2261aff9919e208562466e7969ccae26d9a0 (diff)
downloadvolse-hubzilla-27577824de3918c2f44c236916f3b2faeb92ec4f.tar.gz
volse-hubzilla-27577824de3918c2f44c236916f3b2faeb92ec4f.tar.bz2
volse-hubzilla-27577824de3918c2f44c236916f3b2faeb92ec4f.zip
fix php8 issue in include/oembed and unencapsulate for zot_refresh()
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index e68da4209..e1472b35e 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -464,6 +464,7 @@ function zot_refresh($them, $channel = null, $force = false) {
if($j['permissions']['data']) {
$permissions = Crypto::unencapsulate(
[
+ 'encrypted' => true,
'data' => $j['permissions']['data'],
'key' => $j['permissions']['key'],
'iv' => $j['permissions']['iv'],
@@ -472,6 +473,7 @@ function zot_refresh($them, $channel = null, $force = false) {
$channel['channel_prvkey']);
if($permissions) {
$permissions = json_decode($permissions,true);
+hz_syslog(print_r($permissions,true));
}
logger('decrypted permissions: ' . print_r($permissions,true), LOGGER_DATA, LOG_DEBUG);
}