X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FKnownSonesPage.java;h=b40515a1903bf0fef1626630e7c37dde95a33a97;hb=0acd68634f3e73c62087609c1faa2dfc53da506d;hp=6ed56674d2c8cccab1638fd2a0a5be81e5dc4949;hpb=ba4811ca5360e93b449629132b4c6583aa82eb1a;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java index 6ed5667..b40515a 100644 --- a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java +++ b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java @@ -1,5 +1,5 @@ /* - * Sone - KnownSonesPage.java - Copyright © 2010 David Roden + * Sone - KnownSonesPage.java - Copyright © 2010–2012 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -25,8 +25,8 @@ import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.web.page.FreenetRequest; import net.pterodactylus.util.collection.Pagination; import net.pterodactylus.util.collection.ReverseComparator; -import net.pterodactylus.util.filter.Filter; -import net.pterodactylus.util.filter.Filters; +import net.pterodactylus.util.collection.filter.Filter; +import net.pterodactylus.util.collection.filter.Filters; import net.pterodactylus.util.number.Numbers; import net.pterodactylus.util.template.Template; import net.pterodactylus.util.template.TemplateContext; @@ -91,7 +91,7 @@ public class KnownSonesPage extends SoneTemplatePage { */ @Override public boolean filterObject(Sone sone) { - return webInterface.getCore().isNewSone(sone.getId()); + return !sone.isKnown(); } }); } else if ("not-new".equals(filter)) { @@ -101,7 +101,7 @@ public class KnownSonesPage extends SoneTemplatePage { */ @Override public boolean filterObject(Sone sone) { - return !webInterface.getCore().isNewSone(sone.getId()); + return sone.isKnown(); } }); }