move hidewall to user table - queries are getting too complicated and servers falling over

This commit is contained in:
Friendika 2011-07-05 23:23:43 -07:00
commit 84d12c3e08
9 changed files with 34 additions and 30 deletions

View file

@ -31,7 +31,7 @@ function dfrn_poll_init(&$a) {
killme();
}
$r = q("SELECT `hidewall` FROM `profile` LEFT JOIN `user` ON `profile`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `profile`.`is-default` = 1 LIMIT 1",
$r = q("SELECT `hidewall` FROM `user` WHERE `user`.`nickname` = '%s' LIMIT 1",
dbesc($a->argv[1])
);
if(count($r) && $r[0]['hidewall'])