Do not mark posts and replies as known when rendering.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 11:16:52 +0000 (12:16 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 25 Nov 2010 11:16:52 +0000 (12:16 +0100)
src/main/java/net/pterodactylus/sone/template/PostAccessor.java
src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java

index 574eb1c..de96780 100644 (file)
@@ -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);
        }
index 08c91c7..d664697 100644 (file)
@@ -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);
        }