Skip to content
Browse files

Missing web intent

  • Loading branch information...
1 parent 54779f0 commit 3d4e3cc19fbbb43a10984a9523d1cf9ec428c979 @ginatrapani ginatrapani committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 webapp/_lib/view/plugins/modifier.link_usernames_to_twitter.php
View
3 webapp/_lib/view/plugins/modifier.link_usernames_to_twitter.php
@@ -44,5 +44,6 @@
* @return string
*/
function smarty_modifier_link_usernames_to_twitter($text) {
- return preg_replace('/(^|[^a-z0-9_])@([a-z0-9_]+)/i', '$1<a href="http://twitter.com/$2">@$2</a>', $text);
+ return preg_replace('/(^|[^a-z0-9_])@([a-z0-9_]+)/i',
+ '$1<a href="https://twitter.com/intent/user?screen_name=$2">@$2</a>', $text);
}

0 comments on commit 3d4e3cc

Please sign in to comment.
Something went wrong with that request. Please try again.