Return the ID of the Sone with the post.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / GetPostAjaxPage.java
index b0d8ec5..452fc5a 100644 (file)
@@ -87,6 +87,7 @@ public class GetPostAjaxPage extends JsonPage {
        private JsonObject createJsonPost(Post post) {
                JsonObject jsonPost = new JsonObject();
                jsonPost.put("id", post.getId());
+               jsonPost.put("sone", post.getSone().getId());
                jsonPost.put("time", post.getTime());
                postTemplate.set("post", post);
                StringWriter stringWriter = new StringWriter();