Return ID of the post from post reply.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetStatusAjaxPage.java
index 8657a6a..9c4c76f 100644 (file)
@@ -134,7 +134,7 @@ public class GetStatusAjaxPage extends JsonPage {
                        JsonObject jsonReply = new JsonObject();
                        jsonReply.put("id", reply.getId());
                        jsonReply.put("sone", reply.getSone().getId());
-                       jsonReply.put("post", reply.getPost().getId());
+                       jsonReply.put("post", reply.getPostId());
                        jsonReply.put("postSone", reply.getPost().getSone().getId());
                        jsonReplies.add(jsonReply);
                }