aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-03-20 16:09:34 -0700
committerzotlabs <mike@macgirvin.com>2019-03-20 16:09:34 -0700
commit75c3bda8665b78b9a44863b87c08d4f9e8a5b547 (patch)
treee628a6d003607cb35f42ad6fcef85d6aa87a9f69 /include/follow.php
parented8d2cb482fa79a5bd7028e7634baca48895f7d8 (diff)
downloadvolse-hubzilla-75c3bda8665b78b9a44863b87c08d4f9e8a5b547.tar.gz
volse-hubzilla-75c3bda8665b78b9a44863b87c08d4f9e8a5b547.tar.bz2
volse-hubzilla-75c3bda8665b78b9a44863b87c08d4f9e8a5b547.zip
hubzilla core issue #1356 , permissions not getting decrypted on follow
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php
index db77a0160..1b35f1b32 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -119,6 +119,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
if( array_key_exists('permissions',$j) && array_key_exists('data',$j['permissions'])) {
$permissions = crypto_unencapsulate(array(
'data' => $j['permissions']['data'],
+ 'alg' => $j['permissions']['alg'],
'key' => $j['permissions']['key'],
'iv' => $j['permissions']['iv']),
$channel['channel_prvkey']);