Commits

Iván Flores committed ed8f538

Fix: Make 'mailto' links on tweets

  • Participants
  • Parent commits 0a3cb94
  • Tags 0.3

Comments (0)

Files changed (1)

File rm-twitter-feed.php

     Plugin URI: http://restatemedia.com
     Description: Plugin for displaying tweets using Twitter API 1.1 
     Author: Iván Flores
-    Version: 0.2 
+    Version: 0.3 
     Author URI: http://restatemedia.com
 */ 
 
 
 				for (var i=0;i<splitTweet.length;i++) {
 
-					if (splitTweet[i].search("@") >= 0) {
+					if (splitTweet[i].charAt(0) === "@") {
+						
 						var user = (splitTweet[i]),
 							userLink = '<a target="_blank" href="http://twitter.com/' + user.replace("@", "") + '">' + user +'</a>',
 							tweet = tweet.replace(user, userLink);
+					
 					}
 
 				}