comments: don't interpolate IP into anonymous user's "name"
If an admin wants the IP in the comment display template they can still get it (the default template shows it).master
parent
c038734986
commit
3560460eb6
|
@ -89,12 +89,10 @@ sub preprocess { # {{{
|
|||
($commentauthorurl, $commentauthor) =
|
||||
linkuser($params{username});
|
||||
}
|
||||
elsif (defined $params{ip}) {
|
||||
$commentip = $params{ip};
|
||||
$commentauthor = sprintf(
|
||||
gettext("Anonymous (IP: %s)"), $params{ip});
|
||||
}
|
||||
else {
|
||||
if (defined $params{ip}) {
|
||||
$commentip = $params{ip};
|
||||
}
|
||||
$commentauthor = gettext("Anonymous");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue