get rid of hcard in @-replies

darcs-hash:20081214204557-84dde-92dbf80aa81d55c9ef23faa14bc209183fdcf883.gz
This commit is contained in:
Evan Prodromou 2008-12-14 15:45:57 -05:00
parent b6820b4f61
commit 36aff8bafb

View File

@ -936,9 +936,9 @@ function common_at_link($sender_id, $nickname) {
$sender = Profile::staticGet($sender_id); $sender = Profile::staticGet($sender_id);
$recipient = common_relative_profile($sender, common_canonical_nickname($nickname)); $recipient = common_relative_profile($sender, common_canonical_nickname($nickname));
if ($recipient) { if ($recipient) {
return '<span class="vcard"><a class="fn nickname url atlink" rel="reply" href="'.htmlspecialchars($recipient->profileurl).'">'.$nickname.'</a></span>'; return '<a href="'.htmlspecialchars($recipient->profileurl).'" class="atlink">'.$nickname.'</a>';
} else { } else {
return '<span class="vcard"><span class="fn nickname">'.$nickname.'</span></span>'; return $nickname;
} }
} }