From: erik Date: Wed, 9 Jul 2008 01:04:15 +0000 (-0400) Subject: PITS.00114: 'T USERNAME' should work like an @-link X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae9fb6a4e580c1ef0ec87c7e40d77bdc234fa6f0;p=quix0rs-gnu-social.git PITS.00114: 'T USERNAME' should work like an @-link darcs-hash:20080709010415-7f4fe-943321fd9ad9df3890599fc1b3f99e97db16e43d.gz --- diff --git a/lib/util.php b/lib/util.php index 1e874e04b2..ad3bc1038c 100644 --- a/lib/util.php +++ b/lib/util.php @@ -595,6 +595,7 @@ function common_render_content($text, $notice) { $id = $notice->profile_id; $r = preg_replace('@https?://[^)\]>\s]+@', '\0', $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;