aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-09-02 15:46:31 +0200
committerzottel <github@zottel.net>2015-09-02 15:46:31 +0200
commitd376d2a5908241082f2e91349c9100d41054f5d0 (patch)
treecf894acb1662d54ffdcffeea08f183e83d3f000e
parent9328edfdcdba589c69ce2b26f249458c57ef42d8 (diff)
downloadvolse-hubzilla-d376d2a5908241082f2e91349c9100d41054f5d0.tar.gz
volse-hubzilla-d376d2a5908241082f2e91349c9100d41054f5d0.tar.bz2
volse-hubzilla-d376d2a5908241082f2e91349c9100d41054f5d0.zip
really fix post filtering
-rw-r--r--include/zot.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/zot.php b/include/zot.php
index 16336ad54..fb82c4873 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1638,9 +1638,10 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $
}
- $ab = q("select abook.* from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d
- and abook_self = 0",
- intval($channel['channel_id'])
+ $ab = q("select * from abook where abook_channel = %d
+ and abook_xchan = '%s'",
+ intval($channel['channel_id']),
+ $arr['owner_xchan']
);
$abook = (($ab) ? $ab[0] : null);