OStatus-Conversation auto completion works now.

Some performance issues added as well.
This commit is contained in:
Michael Vogel 2013-01-30 01:31:27 +01:00
parent 9967c9892d
commit 2350aa54eb
5 changed files with 40 additions and 42 deletions

View file

@ -75,12 +75,13 @@ function community_content(&$a, $update = 0) {
AND `item`.`allow_cid` = '' AND `item`.`allow_gid` = ''
AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = ''
AND `item`.`private` = 0 AND `item`.`wall` = 1 AND `user`.`hidewall` = 0
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 group by `item`.`uri`
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
ORDER BY `received` DESC LIMIT %d, %d ",
intval($a->pager['start']),
intval($a->pager['itemspage'])
);
// AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 group by `item`.`uri`
if(! count($r)) {
info( t('No results.') . EOL);