X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftemplate%2FReplyAccessor.java;h=41fbf4ed35a09fc9403e95cc366ec52a87c5fa44;hb=8871424239966323798a4ebd1c7d2c27ba830f1e;hp=d6646973b96388ea62e39648af8b6a645ab06d6f;hpb=64d9beb831fabdd08df6600f960ffb0e4b3825a5;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java b/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java index d664697..41fbf4e 100644 --- a/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/ReplyAccessor.java @@ -54,7 +54,7 @@ public class ReplyAccessor extends ReflectionAccessor { if ("likes".equals(member)) { return core.getLikes(reply); } else if (member.equals("liked")) { - Sone currentSone = (Sone) dataProvider.getData("currentSone"); + Sone currentSone = (Sone) dataProvider.get("currentSone"); return (currentSone != null) && (currentSone.isLikedReplyId(reply.getId())); } else if (member.equals("new")) { return core.isNewReply(reply.getId(), false);