diff options
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Connect.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Connect.php b/Zotlabs/Lib/Connect.php index 978a4ce39..5fc0e3fe1 100644 --- a/Zotlabs/Lib/Connect.php +++ b/Zotlabs/Lib/Connect.php @@ -152,7 +152,6 @@ class Connect { call_hooks('follow_allow',$hookdata); if(! $hookdata['allowed']) { - hz_syslog('zesz'); $result['message'] = t('Protocol disabled.'); return $result; } @@ -211,7 +210,7 @@ class Connect { $p['perms']['moderated'] = 0; } - $my_perms = Permissions::serialise($p['perms']); + $my_perms = $p['perms']; $profile_assign = get_pconfig($uid,'system','profile_assign',''); @@ -279,8 +278,10 @@ class Connect { // Set suitable permissions to the connection - if ($my_perms) { - set_abconfig($uid,$xchan_hash,'system','my_perms',$my_perms); + if($my_perms) { + foreach($my_perms as $k => $v) { + set_abconfig($uid,$xchan_hash,'my_perms',$k,$v); + } } // fetch the entire record |