PITS.00114: 'T USERNAME' should work like an @-link

darcs-hash:20080709010415-7f4fe-943321fd9ad9df3890599fc1b3f99e97db16e43d.gz
This commit is contained in:
erik 2008-07-08 21:04:15 -04:00
parent b9df342437
commit ae9fb6a4e5

View File

@ -595,6 +595,7 @@ function common_render_content($text, $notice) {
$id = $notice->profile_id; $id = $notice->profile_id;
$r = preg_replace('@https?://[^)\]>\s]+@', '<a href="\0" class="extlink">\0</a>', $r); $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('/(^|\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: # tags
# XXX: machine tags # XXX: machine tags
return $r; return $r;