From 3b4503c971cda9e78d8cb310ab7c2e62987efffd Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 12 Mar 2020 19:09:34 +0000 Subject: use xchan_guid_sig instead of channel_guid_sig since it slightly differs depending on *default* protocol --- include/zot.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/zot.php b/include/zot.php index ca33b6c48..7d7df9ece 100644 --- a/include/zot.php +++ b/include/zot.php @@ -407,8 +407,8 @@ function zot_refresh($them, $channel = null, $force = false) { $postvars['token'] = $token; if($channel) { - $postvars['target'] = $channel['channel_guid']; - $postvars['target_sig'] = $channel['channel_guid_sig']; + $postvars['target'] = $channel['xchan_guid']; + $postvars['target_sig'] = $channel['xchan_guid_sig']; $postvars['key'] = $channel['channel_pubkey']; } @@ -426,7 +426,6 @@ function zot_refresh($them, $channel = null, $force = false) { logger('zot_refresh: ' . $url, LOGGER_DATA, LOG_INFO); - $result = z_post_url($url . $rhs,$postvars); if ($result['success']) { @@ -5228,11 +5227,10 @@ function zot_reply_refresh($sender, $recipients) { foreach ($recipients as $recip) { $r = q("select channel.*,xchan.* from channel left join xchan on channel_portable_id = xchan_hash - where channel_guid = '%s' and channel_guid_sig = '%s' limit 1", + where xchan_guid = '%s' and xchan_guid_sig = '%s' limit 1", dbesc($recip['guid']), dbesc($recip['guid_sig']) ); - $x = zot_refresh(array( 'xchan_guid' => $sender['guid'], 'xchan_guid_sig' => $sender['guid_sig'], -- cgit v1.2.3