really fix post filtering

This commit is contained in:
zottel 2015-09-02 15:49:07 +02:00
parent 184c544a24
commit 441946b9d3

View File

@ -1661,9 +1661,9 @@ 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_flags & %d) = 0",
$ab = q("select * from abook where abook_channel = %d and abook_xchan = '%s'",
intval($channel['channel_id']),
intval(ABOOK_FLAG_SELF)
$arr['owner_xchan']
);
$abook = (($ab) ? $ab[0] : null);