projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store a Sone’s known status in the Sone itself.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
KnownSonesPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java
b/src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java
index
6ed5667
..
f32a47d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/KnownSonesPage.java
@@
-91,7
+91,7
@@
public class KnownSonesPage extends SoneTemplatePage {
*/
@Override
public boolean filterObject(Sone sone) {
*/
@Override
public boolean filterObject(Sone sone) {
- return
webInterface.getCore().isNewSone(sone.getId()
);
+ return
!sone.isKnown(
);
}
});
} else if ("not-new".equals(filter)) {
}
});
} else if ("not-new".equals(filter)) {
@@
-101,7
+101,7
@@
public class KnownSonesPage extends SoneTemplatePage {
*/
@Override
public boolean filterObject(Sone sone) {
*/
@Override
public boolean filterObject(Sone sone) {
- return
!webInterface.getCore().isNewSone(sone.getId()
);
+ return
sone.isKnown(
);
}
});
}
}
});
}