aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-06 21:40:01 -0800
committerfriendica <info@friendica.com>2013-12-06 21:40:01 -0800
commitf45b06ffa004c6e6920214b64efe18e3cfe2d667 (patch)
tree83f0e15dedc9381448d95b02ee5968def3969085 /include/socgraph.php
parent9354c33839359821111b57a2a3aea916819d9c4f (diff)
downloadvolse-hubzilla-f45b06ffa004c6e6920214b64efe18e3cfe2d667.tar.gz
volse-hubzilla-f45b06ffa004c6e6920214b64efe18e3cfe2d667.tar.bz2
volse-hubzilla-f45b06ffa004c6e6920214b64efe18e3cfe2d667.zip
suggestion widget
Diffstat (limited to 'include/socgraph.php')
-rw-r--r--include/socgraph.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index b34d5142c..0e91eba60 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -287,11 +287,13 @@ function suggestion_query($uid, $myxchan, $start = 0, $limit = 80) {
and not xlink_link in ( select xchan from xign where uid = %d )
and xlink_xchan != ''
and not ( xchan_flags & %d )
+ and not ( xchan_flags & %d )
group by xchan_hash order by total desc limit %d, %d ",
intval($uid),
intval($uid),
intval($uid),
intval(XCHAN_FLAGS_HIDDEN),
+ intval(XCHAN_FLAGS_DELETED),
intval($start),
intval($limit)
);
@@ -305,10 +307,12 @@ function suggestion_query($uid, $myxchan, $start = 0, $limit = 80) {
and not xlink_link in ( select abook_xchan from abook where abook_channel = %d )
and not xlink_link in ( select xchan from xign where uid = %d )
and not ( xchan_flags & %d )
+ and not ( xchan_flags & %d )
group by xchan_hash order by total desc limit %d, %d ",
intval($uid),
intval($uid),
intval(XCHAN_FLAGS_HIDDEN),
+ intval(XCHAN_FLAGS_DELETED),
intval($start),
intval($limit)
);