Merge branch 'next' into edit-wot-trust
[Sone.git] / src / main / java / net / pterodactylus / sone / template / SoneAccessor.java
index eac6e2c..c4eac6c 100644 (file)
@@ -87,6 +87,11 @@ public class SoneAccessor extends ReflectionAccessor {
                        return core.getSoneStatus(sone) == SoneStatus.downloading;
                } else if (member.equals("new")) {
                        return core.isNewSone(sone);
+               } else if (member.equals("locked")) {
+                       return core.isLocked(sone);
+               } else if (member.equals("trust")) {
+                       Sone currentSone = (Sone) dataProvider.getData("currentSone");
+                       return core.getTrust(currentSone, sone);
                }
                return super.get(dataProvider, object, member);
        }