diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-17 14:51:42 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-17 14:51:42 -0400 |
commit | f65039212d35481d3eab2380a7e0c7bd98eb2770 (patch) | |
tree | fe1787ab9276f785f5b21012355d7737fb7ef81b /actions/newmessage.php | |
parent | e42de1ccc12351ac301ed97ef3f7c9d46b41f688 (diff) |
to parameter is an ID not a nickname
darcs-hash:20080917185142-5ed1f-1f87afb283161609bfc202824a39c53f3239b716.gz
Diffstat (limited to 'actions/newmessage.php')
-rw-r--r-- | actions/newmessage.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/newmessage.php b/actions/newmessage.php index 95b98ec47..7df6c7259 100644 --- a/actions/newmessage.php +++ b/actions/newmessage.php @@ -37,6 +37,7 @@ class NewmessageAction extends Action { $user = common_current_user(); assert($user); # XXX: maybe an error instead... + $content = $this->trimmed('content'); $to = $this->trimmed('to'); @@ -124,7 +125,7 @@ class NewmessageAction extends Action { $to = common_canonical_nickname($this->trimmed('to')); - $other = User::staticGet('nickname', $to); + $other = User::staticGet('id', $to); if (!$other) { $this->client_error(_('No such user'), 404); |