Merge pull request #389 from zzottel/master

really fix post filtering
This commit is contained in:
redmatrix 2015-09-03 06:12:54 +10:00
commit 3647b74d33

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);