diff options
author | M. Dent <dentm42@gmail.com> | 2019-01-18 06:15:01 +0100 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2019-01-18 06:15:01 +0100 |
commit | bf879ce742d4a1fd77cb6e5de85adfdfc213ac58 (patch) | |
tree | 7d50b69884c02c2cedd543e14265f8d27f60fa37 /Zotlabs/Lib/DReport.php | |
parent | e89a3b05ece60ecb994e0dd4c2701164cabb0525 (diff) | |
parent | 5aa0267936e391e1d1a98de5287546ad5817fb41 (diff) | |
download | volse-hubzilla-bf879ce742d4a1fd77cb6e5de85adfdfc213ac58.tar.gz volse-hubzilla-bf879ce742d4a1fd77cb6e5de85adfdfc213ac58.tar.bz2 volse-hubzilla-bf879ce742d4a1fd77cb6e5de85adfdfc213ac58.zip |
Merge branch 'dreport_fixes' into 'dev'
fix delivery report for zot6 connections
See merge request hubzilla/core!1476
Diffstat (limited to 'Zotlabs/Lib/DReport.php')
-rw-r--r-- | Zotlabs/Lib/DReport.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/DReport.php b/Zotlabs/Lib/DReport.php index ef1ce2678..18087e29f 100644 --- a/Zotlabs/Lib/DReport.php +++ b/Zotlabs/Lib/DReport.php @@ -87,9 +87,11 @@ class DReport { // Is the sender one of our channels? - $c = q("select channel_id from channel where channel_hash = '%s' limit 1", + $c = q("select channel_id from channel where channel_hash = '%s' or channel_portable_id = '%s' limit 1", + dbesc($dr['sender']), dbesc($dr['sender']) ); + if(! $c) return false; @@ -104,6 +106,8 @@ class DReport { $rxchan = $dr['recipient']; } + + // is the recipient one of our connections, or do we want to store every report? $pcf = get_pconfig($c[0]['channel_id'],'system','dreport_store_all'); |