From 64d9beb831fabdd08df6600f960ffb0e4b3825a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 25 Nov 2010 12:16:52 +0100 Subject: [PATCH] Do not mark posts and replies as known when rendering. --- src/main/java/net/pterodactylus/sone/template/PostAccessor.java | 2 +- src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.7.4