Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Missing web intent

  • Loading branch information...
commit 3d4e3cc19fbbb43a10984a9523d1cf9ec428c979 1 parent 54779f0
@ginatrapani ginatrapani authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.