Skip to content

Commit

Permalink
Fixed linking of multiple usernames in tweet.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterk committed Oct 16, 2008
1 parent 34e4049 commit 31e5263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions TODO.txt
Expand Up @@ -9,6 +9,7 @@ TODO
DONE
----

+ Fixed - Multiple usernames in tweet not linked.
+ Added profile image example in hud-black-avatars style.
+ Aditional style matching Fluid's HUD-black.
+ Add Twoot to Twitter client registry (should display "posted via Twoot").
Expand Down
2 changes: 1 addition & 1 deletion twoot.js
Expand Up @@ -20,7 +20,7 @@ jQuery.fn.reverse = function() {
$.getJSON(url, function(data){
$.each(data.reverse(), function(i, item) {
if($("#msg-" + item.id).length == 0) { // <- fix for twitter caching which sometimes have problems with the "since" parameter
list.prepend('<li id="msg-' + item.id + '"><img class="profile_image" src="' + item.user.profile_image_url + '" alt="' + item.user.name + '" /><span class="time" title="' + item.created_at + '">' + relative_time(item.created_at) + '</span> <a class="user" href="javascript:addAddress(\'' + item.user.screen_name + '\')">' + item.user.screen_name + '</a><div class="tweet_text">' + item.text.replace(/(\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+)/, '<a href="$1">$1</a>').replace(/[\@]+([A-Za-z0-9-_]+)/, '<a href="http://twitter.com/$1">@$1</a>').replace(/[&lt;]+[3]/, "<tt class='heart'>&#x2665;</tt>") + '</div></li>');
list.prepend('<li id="msg-' + item.id + '"><img class="profile_image" src="' + item.user.profile_image_url + '" alt="' + item.user.name + '" /><span class="time" title="' + item.created_at + '">' + relative_time(item.created_at) + '</span> <a class="user" href="javascript:addAddress(\'' + item.user.screen_name + '\')">' + item.user.screen_name + '</a><div class="tweet_text">' + item.text.replace(/(\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+)/g, '<a href="$1">$1</a>').replace(/[\@]+([A-Za-z0-9-_]+)/g, '<a href="http://twitter.com/$1">@$1</a>').replace(/[&lt;]+[3]/g, "<tt class='heart'>&#x2665;</tt>") + '</div></li>');
}
});
});
Expand Down

0 comments on commit 31e5263

Please sign in to comment.