From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 11:16:52 +0000 (+0100) Subject: Do not mark posts and replies as known when rendering. X-Git-Tag: 0.3.1-RC1~23 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=64d9beb831fabdd08df6600f960ffb0e4b3825a5;p=Sone.git Do not mark posts and replies as known when rendering. --- diff --git a/src/main/java/net/pterodactylus/sone/template/PostAccessor.java b/src/main/java/net/pterodactylus/sone/template/PostAccessor.java index 574eb1c..de96780 100644 --- a/src/main/java/net/pterodactylus/sone/template/PostAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/PostAccessor.java @@ -61,7 +61,7 @@ public class PostAccessor extends ReflectionAccessor { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return (currentSone != null) && (currentSone.isLikedPostId(post.getId())); } else if (member.equals("new")) { - return core.isNewPost(post.getId()); + return core.isNewPost(post.getId(), false); } return super.get(dataProvider, object, member); } diff --git a/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java b/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java index 08c91c7..d664697 100644 --- a/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java @@ -57,7 +57,7 @@ public class ReplyAccessor extends ReflectionAccessor { Sone currentSone = (Sone) dataProvider.getData("currentSone"); return (currentSone != null) && (currentSone.isLikedReplyId(reply.getId())); } else if (member.equals("new")) { - return core.isNewReply(reply.getId()); + return core.isNewReply(reply.getId(), false); } return super.get(dataProvider, object, member); }