]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Actually store the timestamp on each nonce
authorZach Copley <zach@status.net>
Fri, 5 Feb 2010 01:38:29 +0000 (01:38 +0000)
committerZach Copley <zach@status.net>
Fri, 5 Feb 2010 02:10:08 +0000 (02:10 +0000)
lib/oauthstore.php

index b30fb49d57e2f16b0c737df00d0354492dbd4aa9..eabe37f9fa4a944d76f99c91c9a57de69c6c0f23 100644 (file)
@@ -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()));
 
-
     }
 
     /**