aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-03 18:27:25 +0200
committerMax Kostikov <max@kostikov.co>2019-10-03 18:27:25 +0200
commitb6db1898b12aac45ce40b49ab36acf5e74902dc3 (patch)
treef63e1bef2f8395c5cbc2c71e4de66e19d12a5960
parentde902d179e1c032f8d3cbe801d38072efcd36ef1 (diff)
downloadvolse-hubzilla-b6db1898b12aac45ce40b49ab36acf5e74902dc3.tar.gz
volse-hubzilla-b6db1898b12aac45ce40b49ab36acf5e74902dc3.tar.bz2
volse-hubzilla-b6db1898b12aac45ce40b49ab36acf5e74902dc3.zip
Get extended channel info using channelx_by_hash()
-rw-r--r--include/zot.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/zot.php b/include/zot.php
index bd85dd755..eab75e235 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -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']);
- $r = q("select * from channel where channel_hash = '%s' limit 1",
- dbesc($d['hash'])
- );
+ $channel = channelx_by_hash($d['hash']);
- if(! $r) {
+ if(! $channel) {
$DR->update('recipient not found');
$result[] = $DR->get();
continue;
}
- $channel = $r[0];
$DR->set_name($channel['channel_name'] . ' <' . channel_reddress($channel) . '>');
/* blacklisted channels get a permission denied, no special message to tip them off */