diff options
author | Mario <mario@mariovavti.com> | 2020-04-21 09:42:40 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-04-21 09:42:40 +0000 |
commit | 579adb48978172ae26f8cb1c724b8b17a6a37b34 (patch) | |
tree | 3efb95f56a45d6b3fbcf22e9bc7d575d162a6926 | |
parent | c71422e909a8583fcdbea4f1c4ada8c4e85a8f1a (diff) | |
download | volse-hubzilla-579adb48978172ae26f8cb1c724b8b17a6a37b34.tar.gz volse-hubzilla-579adb48978172ae26f8cb1c724b8b17a6a37b34.tar.bz2 volse-hubzilla-579adb48978172ae26f8cb1c724b8b17a6a37b34.zip |
fix onepoll
-rw-r--r-- | Zotlabs/Daemon/Onepoll.php | 6 | ||||
-rw-r--r-- | include/zot.php | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php index 2f06ec125..fdcb907d1 100644 --- a/Zotlabs/Daemon/Onepoll.php +++ b/Zotlabs/Daemon/Onepoll.php @@ -76,7 +76,11 @@ class Onepoll { // update permissions - $x = zot_refresh($contact,$importer); + if($contact['xchan_network'] === 'zot6') + $x = Libzot::refresh($contact,$importer); + + if($contact['xchan_network'] === 'zot') + $x = zot_refresh($contact,$importer); $responded = false; $updated = datetime_convert(); diff --git a/include/zot.php b/include/zot.php index 8b9cb0767..fb0804aa7 100644 --- a/include/zot.php +++ b/include/zot.php @@ -408,7 +408,7 @@ function zot_refresh($them, $channel = null, $force = false) { if($channel) { $postvars['target'] = $channel['xchan_guid']; - $postvars['target_sig'] = $channel['xchan_guid_sig']; + $postvars['target_sig'] = str_replace('sha256.', '', $channel['xchan_guid_sig']); $postvars['key'] = $channel['channel_pubkey']; } |