* @return The filtered new-post notification, or {@code null} if the
* notification should be removed
*/
- public static ListNotification<Post> filterNewPostNotification(ListNotification<Post> newPostNotification, Sone currentSone, boolean soneRequired) {
+ private static ListNotification<Post> filterNewPostNotification(ListNotification<Post> newPostNotification, Sone currentSone, boolean soneRequired) {
if (soneRequired && (currentSone == null)) {
return null;
}
* @return The filtered new-reply notification, or {@code null} if the
* notification should be removed
*/
- public static ListNotification<PostReply> filterNewReplyNotification(ListNotification<PostReply> newReplyNotification, Sone currentSone) {
+ private static ListNotification<PostReply> filterNewReplyNotification(ListNotification<PostReply> newReplyNotification, Sone currentSone) {
if (currentSone == null) {
return null;
}
return false;
}
}
- if (post.getTime() > System.currentTimeMillis()) {
- return false;
- }
- return true;
+ return post.getTime() <= System.currentTimeMillis();
}
/**
if (!isPostVisible(sone, post.get())) {
return false;
}
- if (reply.getTime() > System.currentTimeMillis()) {
- return false;
- }
- return true;
+ return reply.getTime() <= System.currentTimeMillis();
}
}