diff options
author | zotlabs <mike@macgirvin.com> | 2018-12-03 18:50:45 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-12-03 18:50:45 -0800 |
commit | 7d694dca074f905fb120da9b60d1a665b40e5293 (patch) | |
tree | 9b260602aee91f48bc54751f22aab1de3e37e71e /Zotlabs/Lib/Libzot.php | |
parent | 7a693500c4a112e9116e0df5dc2f0b531f6de2c7 (diff) | |
download | volse-hubzilla-7d694dca074f905fb120da9b60d1a665b40e5293.tar.gz volse-hubzilla-7d694dca074f905fb120da9b60d1a665b40e5293.tar.bz2 volse-hubzilla-7d694dca074f905fb120da9b60d1a665b40e5293.zip |
more work on z6 commenting
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 70f013eb7..0fbde9765 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1418,7 +1418,7 @@ logger('4'); $DR = new DReport(z_root(),$sender,$d,$arr['mid']); - $channel = channelx_by_hash($d); + $channel = channelx_by_portid($d); if (! $channel) { $DR->update('recipient not found'); @@ -1505,8 +1505,10 @@ logger('4'); } } - if($arr['mid'] != $arr['parent_mid']) { +logger('item: ' . print_r($arr,true), LOGGER_DATA); + if($arr['mid'] !== $arr['parent_mid']) { +logger('checking source: "' . $arr['mid'] . '" != "' . $arr['parent_mid'] . '"'); // check source route. // We are only going to accept comments from this sender if the comment has the same route as the top-level-post, // this is so that permissions mismatches between senders apply to the entire conversation @@ -1591,7 +1593,7 @@ logger('4'); $arr['route'] = $last_prior_route; } } - +logger('hey'); $ab = q("select * from abook where abook_channel = %d and abook_xchan = '%s'", intval($channel['channel_id']), dbesc($arr['owner_xchan']) |