X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FKnownSonesPage.java;h=82f8ed657bac94582c980867107ff7187db9c1ce;hp=6ed56674d2c8cccab1638fd2a0a5be81e5dc4949;hb=a47643aed43d118ca68044f95451bb5374cdb332;hpb=00d11d64ca4247b81f54a806c14e7b9cfb961cf5 diff --git a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java index 6ed5667..82f8ed6 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 @@ -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(); } }); }