add pending check on group queries

This commit is contained in:
friendica
2012-11-29 23:06:03 -08:00
parent c079133719
commit f7ff2de132
6 changed files with 29 additions and 20 deletions

View File

@@ -22,9 +22,10 @@ function collect_recipients($item,&$private) {
}
else {
$recipients = array();
$r = q("select * from abook where abook_channel = %d and not (abook_flags & %d) ",
$r = q("select * from abook where abook_channel = %d and not (abook_flags & %d) and not (abook_flags & %d)",
intval($item['uid']),
intval(ABOOK_FLAG_SELF)
intval(ABOOK_FLAG_SELF),
intval(ABOOK_FLAG_PENDING)
);
if($r) {
foreach($r as $rr) {