diff options
author | B Mathis <brandon@imathis.com> | 2009-11-12 12:18:02 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-12 12:18:02 -0600 |
commit | a91019b9199084d8108876886992716bcf2b8396 (patch) | |
tree | cae986d10d6480b72b041ce5f9c25d20343052d7 /source/javascripts/twitter.js | |
parent | 6a4ccce18c9d80a0e202066a8e6e2df12dbfa7b1 (diff) | |
download | my_new_personal_website-a91019b9199084d8108876886992716bcf2b8396.tar.xz my_new_personal_website-a91019b9199084d8108876886992716bcf2b8396.zip |
set twitter cookie to lastexpire in 30 minutes
Diffstat (limited to 'source/javascripts/twitter.js')
-rw-r--r-- | source/javascripts/twitter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/javascripts/twitter.js b/source/javascripts/twitter.js index 4420c710..9c793b33 100644 --- a/source/javascripts/twitter.js +++ b/source/javascripts/twitter.js @@ -69,7 +69,7 @@ function prettyDate(time){ function getTwitterStatus(twitter_name){ var tweet_cookie = 'tweets_by_' + twitter_name + tweet_count; $(twitter_container).set('html', 'Fetching tweets...'); - if(!Cookie.read(tweet_cookie)) { + if(Cookie.read(tweet_cookie)) { var myTwitterGitter = new TwitterGitter(twitter_name,{ count: ((show_replies) ? tweet_count : 15 + tweet_count), onComplete: function(tweets,user) { @@ -80,7 +80,7 @@ function getTwitterStatus(twitter_name){ the_tweets.push(tweet.text + key + tweet.created_at + key + tweet.id + key + tweet.source); } }); - Cookie.write(tweet_cookie,the_tweets.join('^!^!^'), { duration: 1 }); + Cookie.write(tweet_cookie,the_tweets.join('^!^!^'), { duration: 0.02 }); showTweets(the_tweets); } }).retrieve(); |