Browse code

set twitter cookie to lastexpire in 30 minutes

B Mathis authored on 12/11/2009 at 18:18:02
Showing 1 changed files
... ...
@@ -69,7 +69,7 @@ function prettyDate(time){
69 69
 function getTwitterStatus(twitter_name){
70 70
   var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count;
71 71
   $(twitter_container).set('html', 'Fetching tweets...');
72
-  if(!Cookie.read(tweet_cookie)) {
72
+  if(Cookie.read(tweet_cookie)) {
73 73
   	var myTwitterGitter = new TwitterGitter(twitter_name,{
74 74
   	  count: ((show_replies) ? tweet_count : 15 + tweet_count),
75 75
   		onComplete: function(tweets,user) {
... ...
@@ -80,7 +80,7 @@ function getTwitterStatus(twitter_name){
80 80
     			  the_tweets.push(tweet.text + key + tweet.created_at + key + tweet.id + key + tweet.source);
81 81
   				}
82 82
   			});
83
-  			Cookie.write(tweet_cookie,the_tweets.join('^!^!^'), { duration: 1 });
83
+  			Cookie.write(tweet_cookie,the_tweets.join('^!^!^'), { duration: 0.02 });
84 84
   			showTweets(the_tweets);
85 85
   		}
86 86
   	}).retrieve();