Skip to content

Commit 0c71bde

Browse files
authored
Merge pull request #7 from circuscode/bugfix/2nd-hashtag-issue
Bugfix #4 - 2nd Hashtag Issue
2 parents d2bb1cd + b4a14d9 commit 0c71bde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mathilda_painting.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,9 @@ function mathilda_tweet_paint($date,$tweet,$id,$me,$image,$mention,$url,$hashtag
466466
$num_hashtags=count($tweet_hashtags);
467467
for($i=0; $i<$num_hashtags; $i++)
468468
{
469-
$hashtag_html='<a href="https://twitter.com/search?q=%23'.$tweet_hashtags[$i][1].'" class="mathilda-hashtag" rel="nofollow" target="_blank">#'.$tweet_hashtags[$i][1].'</a>';
470-
$hashtag_search='#'.$tweet_hashtags[$i][1];
471-
$tweet=str_replace ( $hashtag_search, $hashtag_html , $tweet ) ;
469+
$hashtag_html='<a href="https://twitter.com/search?q=%23'.$tweet_hashtags[$i][1].'" class="mathilda-hashtag" rel="nofollow" target="_blank">#'.$tweet_hashtags[$i][1].'</a> ';
470+
$hashtag_search='#'.$tweet_hashtags[$i][1].' ';
471+
$tweet=str_replace ( $hashtag_search, $hashtag_html , $tweet ) ;
472472
}
473473

474474
}

0 commit comments

Comments
 (0)