Rewrite isNewSone() to match isNewPost() and isNewReply().
[Sone.git] / src / main / java / net / pterodactylus / sone / template / SoneAccessor.java
index ef71a96..ac4ab28 100644 (file)
@@ -94,7 +94,7 @@ public class SoneAccessor extends ReflectionAccessor {
                } else if (member.equals("downloading")) {
                        return core.getSoneStatus(sone) == SoneStatus.downloading;
                } else if (member.equals("new")) {
-                       return core.isNewSone(sone);
+                       return core.isNewSone(sone.getId(), false);
                } else if (member.equals("locked")) {
                        return core.isLocked(sone);
                } else if (member.equals("trust")) {
@@ -107,6 +107,7 @@ public class SoneAccessor extends ReflectionAccessor {
                        if (trust == null) {
                                return new Trust(null, null, null);
                        }
+                       return trust;
                }
                return super.get(dataProvider, object, member);
        }