Permalink
Browse files

Don't try to scope hashtag search links to a user if username is an a…

…rray
  • Loading branch information...
1 parent 9ca08fb commit 1c6a6cb6a513c5086fedae0ba5d5a45bfd061523 @purcell purcell committed Mar 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tweet/jquery.tweet.js
@@ -58,7 +58,7 @@
var returning = [];
// Support various latin1 (\u00**) and arabic (\u06**) alphanumeric chars
var regexp = /(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi;
- var usercond = s.username ? '&from='+s.username.join("%2BOR%2B") : '';
+ var usercond = (s.username && s.username.length == 1) ? '&from='+s.username.join("%2BOR%2B") : '';
this.each(function() {
returning.push(this.replace(regexp, ' <a href="http://'+s.twitter_search_url+'/search?q=&tag=$1&lang=all'+usercond+'">#$1</a>'));
});

0 comments on commit 1c6a6cb

Please sign in to comment.