Return the ID of the Sone with the post.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Nov 2010 23:01:56 +0000 (00:01 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 26 Nov 2010 23:01:56 +0000 (00:01 +0100)
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();