diff options
author | Friendika <info@friendika.com> | 2011-09-19 01:17:12 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-19 01:17:12 -0700 |
commit | 2aef98f71d95ba5c2caae7637002daef0bce6de5 (patch) | |
tree | ffc8b84eedfdfed720b6e4ec14244f3a4bff44ef /mod/dfrn_notify.php | |
parent | 672ecc7f7d2e17b0d35eccc94e6fa1b5eef0d108 (diff) | |
download | volse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.tar.gz volse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.tar.bz2 volse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.zip |
cripple account when expired
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r-- | mod/dfrn_notify.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 84cb2fc16..d174c87ee 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -72,7 +72,7 @@ function dfrn_notify_post(&$a) { FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `contact`.`blocked` = 0 AND `contact`.`pending` = 0 - AND `user`.`nickname` = '%s' $sql_extra LIMIT 1", + AND `user`.`nickname` = '%s' AND `user`.`account_expired` = 0 $sql_extra LIMIT 1", dbesc($a->argv[1]) ); @@ -829,7 +829,8 @@ function dfrn_notify_content(&$a) { } $r = q("SELECT `contact`.*, `user`.`nickname` FROM `contact` LEFT JOIN `user` ON `user`.`uid` = `contact`.`uid` - WHERE `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `user`.`nickname` = '%s' $sql_extra LIMIT 1", + WHERE `contact`.`blocked` = 0 AND `contact`.`pending` = 0 AND `user`.`nickname` = '%s' + AND `user`.`account_expired` = 0 $sql_extra LIMIT 1", dbesc($a->argv[1]) ); |