summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-05 01:38:29 +0000
committerZach Copley <zach@status.net>2010-02-05 02:10:08 +0000
commitf6544493578f05cb37d0d7b554b40889d79f681e (patch)
tree55d20cc8fe16b7914cd3782f2a4f51eb09b04dbe
parent4180ab74d9381a1fc53f2a54733a499cb1ee2cad (diff)
Actually store the timestamp on each nonce
-rw-r--r--lib/oauthstore.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oauthstore.php b/lib/oauthstore.php
index b30fb49d5..eabe37f9f 100644
--- a/lib/oauthstore.php
+++ b/lib/oauthstore.php
@@ -65,7 +65,7 @@ class StatusNetOAuthDataStore extends OAuthDataStore
{
$n = new Nonce();
$n->consumer_key = $consumer->key;
- $n->ts = $timestamp;
+ $n->ts = common_sql_date($timestamp);
$n->nonce = $nonce;
if ($n->find(true)) {
return true;
@@ -362,7 +362,6 @@ class StatusNetOAuthDataStore extends OAuthDataStore
array('is_local' => Notice::REMOTE_OMB,
'uri' => $omb_notice->getIdentifierURI()));
-
}
/**