diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-03 20:50:13 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-03 20:50:13 -0700 |
commit | c44acb35757700e52db5cc4a7093b8e4624dc3fa (patch) | |
tree | f98698a531c8df32bc7941cca096f51511f1684f /Zotlabs/Module | |
parent | bad5057a7414eba7f7133538dd671a1413be00e3 (diff) | |
download | volse-hubzilla-c44acb35757700e52db5cc4a7093b8e4624dc3fa.tar.gz volse-hubzilla-c44acb35757700e52db5cc4a7093b8e4624dc3fa.tar.bz2 volse-hubzilla-c44acb35757700e52db5cc4a7093b8e4624dc3fa.zip |
allow delivery report for not just the author, but also if you're the owner and it's on your wall.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Dreport.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Module/Dreport.php b/Zotlabs/Module/Dreport.php index 3fdeff369..76e07b147 100644 --- a/Zotlabs/Module/Dreport.php +++ b/Zotlabs/Module/Dreport.php @@ -21,10 +21,11 @@ class Dreport extends \Zotlabs\Web\Controller { $table = 'push'; $mid = ((argc() > 2) ? argv(2) : ''); if($mid) { - $i = q("select id from item where mid = '%s' and author_xchan = '%s' and uid = %d", + $i = q("select id from item where mid = '%s' and uid = %d and ( author_xchan = '%s' or ( owner_xchan = '%s' and item_wall = 1 )) ", dbesc($mid), + intval($channel['channel_id']), dbesc($channel['channel_hash']), - intval($channel['channel_id']) + dbesc($channel['channel_hash']) ); if($i) { \Zotlabs\Daemon\Master::Summon([ 'Notifier', 'edit_post', $i[0]['id'] ]); @@ -47,8 +48,9 @@ class Dreport extends \Zotlabs\Web\Controller { switch($table) { case 'item': - $i = q("select id from item where mid = '%s' and author_xchan = '%s' ", + $i = q("select id from item where mid = '%s' and ( author_xchan = '%s' or ( owner_xchan = '%s' and item_wall = 1 )) ", dbesc($mid), + dbesc($channel['channel_hash']), dbesc($channel['channel_hash']) ); break; |