Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…rray
  • Loading branch information...
commit 1c6a6cb6a513c5086fedae0ba5d5a45bfd061523 1 parent 9ca08fb
@purcell purcell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tweet/jquery.tweet.js
View
2  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>'));
});
Please sign in to comment.
Something went wrong with that request. Please try again.