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-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/3560460eb6dad82b7fc81278475433d326ec0628?ds=sidebyside 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"); }