]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
PITS.00114: 'T USERNAME' should work like an @-link
authorerik <erik@erikstambaugh.com>
Wed, 9 Jul 2008 01:04:15 +0000 (21:04 -0400)
committererik <erik@erikstambaugh.com>
Wed, 9 Jul 2008 01:04:15 +0000 (21:04 -0400)
darcs-hash:20080709010415-7f4fe-943321fd9ad9df3890599fc1b3f99e97db16e43d.gz

lib/util.php

index 1e874e04b2be26637da91a76e79af299384422f8..ad3bc1038cefd4a5584a8fe61285dc4b6b09a7e9 100644 (file)
@@ -595,6 +595,7 @@ function common_render_content($text, $notice) {
        $id = $notice->profile_id;
        $r = preg_replace('@https?://[^)\]>\s]+@', '<a href="\0" class="extlink">\0</a>', $r);
        $r = preg_replace('/(^|\s+)@([a-z0-9]{1,64})/e', "'\\1@'.common_at_link($id, '\\2')", $r);
+       $r = preg_replace('/^T ([A-Z0-9]{1,64}) /e', "'T '.common_at_link($id, '\\1').' '", $r);
        # XXX: # tags
        # XXX: machine tags
        return $r;