From 3560460eb6dad82b7fc81278475433d326ec0628 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 11 Dec 2008 02:29:11 +0000 Subject: [PATCH] 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). --- IkiWiki/Plugin/comments.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"); } -- 2.26.2