From 2fd2646e6621e07d8cfb04dbff20236c86f38c63 Mon Sep 17 00:00:00 2001
From: joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Date: Thu, 7 Sep 2006 23:54:37 +0000
Subject: [PATCH] remove the "0 new", it's not very useful

---
 IkiWiki/Plugin/aggregate.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index d0d7f4217..f34871f4a 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -100,7 +100,9 @@ sub preprocess (@) { #{{{
 
 	return "<a href=\"".$feed->{url}."\">".$feed->{name}."</a>: ".
 	       "<i>".$feed->{message}."</i> (".$feed->{numposts}.
-	       " stored posts; ".$feed->{newposts}." new)";
+	       " stored posts".
+	       ($feed->{newposts} ? "; ".$feed->{newposts}." new" : "").
+	       ")";
 } # }}}
 
 sub delete (@) { #{{{
-- 
2.26.2