aboutsummaryrefslogtreecommitdiffstats
path: root/mod/salmon.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-19 01:17:12 -0700
committerFriendika <info@friendika.com>2011-09-19 01:17:12 -0700
commit2aef98f71d95ba5c2caae7637002daef0bce6de5 (patch)
treeffc8b84eedfdfed720b6e4ec14244f3a4bff44ef /mod/salmon.php
parent672ecc7f7d2e17b0d35eccc94e6fa1b5eef0d108 (diff)
downloadvolse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.tar.gz
volse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.tar.bz2
volse-hubzilla-2aef98f71d95ba5c2caae7637002daef0bce6de5.zip
cripple account when expired
Diffstat (limited to 'mod/salmon.php')
-rw-r--r--mod/salmon.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/salmon.php b/mod/salmon.php
index 0264e820d..6172d17a1 100644
--- a/mod/salmon.php
+++ b/mod/salmon.php
@@ -25,12 +25,12 @@ function salmon_post(&$a) {
$xml = file_get_contents('php://input');
- logger('mod-salmon: new salmon ' . $xml);
+ logger('mod-salmon: new salmon ' . $xml, LOGGER_DATA);
$nick = (($a->argc > 1) ? notags(trim($a->argv[1])) : '');
$mentions = (($a->argc > 2 && $a->argv[2] === 'mention') ? true : false);
- $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' LIMIT 1",
+ $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `account_expired` = 0 LIMIT 1",
dbesc($nick)
);
if(! count($r))