diff options
author | erik <erik@erikstambaugh.com> | 2008-07-08 21:04:15 -0400 |
---|---|---|
committer | erik <erik@erikstambaugh.com> | 2008-07-08 21:04:15 -0400 |
commit | ae9fb6a4e580c1ef0ec87c7e40d77bdc234fa6f0 (patch) | |
tree | ceecbb29c1ae739716769be4789ec10c828daa2b /lib/util.php | |
parent | b9df3424379b086cf5d512e1b00b0f7f36d59a84 (diff) |
PITS.00114: 'T USERNAME' should work like an @-link
darcs-hash:20080709010415-7f4fe-943321fd9ad9df3890599fc1b3f99e97db16e43d.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 1e874e04b..ad3bc1038 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]+@', '<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; |