]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Detect xmpp uri's and make them into hyperlinks
authorCraig Andrews <candrews@integralblue.com>
Tue, 21 Jul 2009 17:52:59 +0000 (13:52 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 21 Jul 2009 17:52:59 +0000 (13:52 -0400)
http://laconi.ca/trac/ticket/1592

lib/util.php

index 9e8ec41d2592a29f46f0aa62195d24ef5ea13fcb..f23f10e2c0879a479b9d895826c31b388e2fd179 100644 (file)
@@ -414,9 +414,9 @@ function common_replace_urls_callback($text, $callback, $notice_id = null) {
     $regex = '#'.
     '(?:'.
         '(?:'.
-            '(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|xmpp|irc)://'.
+            '(?:https?|ftps?|mms|rtsp|gopher|news|nntp|telnet|wais|file|prospero|webcal|irc)://'.
             '|'.
-            '(?:mailto|aim|tel):'.
+            '(?:mailto|aim|tel|xmpp):'.
         ')'.
         '[^.\s]+\.[^\s]+'.
         '|'.