X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationFilters.java;h=1261fc994ebf4082b8eb3ebd9e67b8320386b798;hb=961a1cfe36ab3b4f6d74931b16098071eb6aaa95;hp=5fd56874ed1a3c7f231f680b2d79e0636e693963;hpb=d988d9117c4700cd456de2c6c789ac89f4f1a133;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java index 5fd5687..1261fc9 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java @@ -248,10 +248,7 @@ public class ListNotificationFilters { return false; } } - if (post.getTime() > System.currentTimeMillis()) { - return false; - } - return true; + return post.getTime() <= System.currentTimeMillis(); } /** @@ -290,10 +287,7 @@ public class ListNotificationFilters { if (!isPostVisible(sone, post.get())) { return false; } - if (reply.getTime() > System.currentTimeMillis()) { - return false; - } - return true; + return reply.getTime() <= System.currentTimeMillis(); } }