made twitter source optional
This commit is contained in:
parent
0abf2cb980
commit
b060c72c8e
@ -16,6 +16,7 @@
|
||||
var tweet_container = 'li';
|
||||
var twitter_container = 'twitter_status';
|
||||
var key = '-!-!-';
|
||||
var show_source = false;
|
||||
|
||||
window.addEvent('domready',function() {
|
||||
getTwitterStatus(twitter_user);
|
||||
@ -43,7 +44,7 @@ function parseTweetMeta(tweet_data){
|
||||
var source = tweet_data[3];
|
||||
|
||||
date = prettyDate(new Date().parse(date));
|
||||
return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a> from ' + source + '</span>';
|
||||
return tweet + '<span class="meta"><a href="http://twitter.com/'+twitter_user+'/'+tweet_id+'">' + date + '</a>' + (show_source ? ' from '+source : '') + '</span>';
|
||||
}
|
||||
|
||||
function prettyDate(time){
|
||||
|
Loading…
Reference in New Issue
Block a user