aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-03-12 19:09:34 +0000
committerMario <mario@mariovavti.com>2020-03-12 19:09:34 +0000
commit3b4503c971cda9e78d8cb310ab7c2e62987efffd (patch)
treea93be7ac771b631aa5d3515137a5686bfb112041 /include
parentc358aa2806717d1af6e47697f87e54b7c9967c9e (diff)
downloadvolse-hubzilla-3b4503c971cda9e78d8cb310ab7c2e62987efffd.tar.gz
volse-hubzilla-3b4503c971cda9e78d8cb310ab7c2e62987efffd.tar.bz2
volse-hubzilla-3b4503c971cda9e78d8cb310ab7c2e62987efffd.zip
use xchan_guid_sig instead of channel_guid_sig since it slightly differs depending on *default* protocol
Diffstat (limited to 'include')
-rw-r--r--include/zot.php8
1 files 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'],