From: Simon McVittie Date: Thu, 11 Dec 2008 02:29:11 +0000 (+0000) Subject: comments: don't interpolate IP into anonymous user's "name" X-Git-Tag: 2.71~97 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=3560460eb6dad82b7fc81278475433d326ec0628 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). --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 4fa82f467..e43bbc49e 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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"); }