Get extended channel info using channelx_by_hash()

This commit is contained in:
Max Kostikov 2019-10-03 18:27:25 +02:00
parent de902d179e
commit b6db1898b1

View File

@ -1776,17 +1776,14 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
$DR = new Zotlabs\Lib\DReport(z_root(),$sender['hash'],$d['hash'],$arr['mid']); $DR = new Zotlabs\Lib\DReport(z_root(),$sender['hash'],$d['hash'],$arr['mid']);
$r = q("select * from channel where channel_hash = '%s' limit 1", $channel = channelx_by_hash($d['hash']);
dbesc($d['hash'])
);
if(! $r) { if(! $channel) {
$DR->update('recipient not found'); $DR->update('recipient not found');
$result[] = $DR->get(); $result[] = $DR->get();
continue; continue;
} }
$channel = $r[0];
$DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>'); $DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>');
/* blacklisted channels get a permission denied, no special message to tip them off */ /* blacklisted channels get a permission denied, no special message to tip them off */