cripple account when expired

This commit is contained in:
Friendika
2011-09-19 01:17:12 -07:00
parent 672ecc7f7d
commit 2aef98f71d
7 changed files with 28 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ require_once('include/contact_selectors.php');
function diaspora_dispatch_public($msg) {
$r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) ",
$r = q("SELECT `user`.* FROM `user` WHERE `user`.`uid` IN ( SELECT `contact`.`uid` FROM `contact` WHERE `contact`.`network` = '%s' AND `contact`.`addr` = '%s' ) AND `account_expired` = 0 ",
dbesc(NETWORK_DIASPORA),
dbesc($msg['author'])
);