📄 Update year in file headers
[Sone.git] / src / main / java / net / pterodactylus / sone / template / ReplyAccessor.java
index 24bcfd6..fe1ccd3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - ReplyAccessor.java - Copyright Â© 2010 David Roden
+ * Sone - ReplyAccessor.java - Copyright Â© 2010–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,8 +28,6 @@ import net.pterodactylus.util.template.TemplateContext;
 /**
  * {@link Accessor} implementation that adds a couple of properties to
  * {@link Reply}s.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David â€˜Bombe’ Roden</a>
  */
 public class ReplyAccessor extends ReflectionAccessor {
 
@@ -58,7 +56,7 @@ public class ReplyAccessor extends ReflectionAccessor {
                        Sone currentSone = (Sone) templateContext.get("currentSone");
                        return (currentSone != null) && (currentSone.isLikedReplyId(reply.getId()));
                } else if (member.equals("new")) {
-                       return core.isNewReply(reply.getId());
+                       return !reply.isKnown();
                } else if (member.equals("loaded")) {
                        return reply.getSone() != null;
                }