From: David ‘Bombe’ Roden Date: Fri, 26 Nov 2010 23:01:56 +0000 (+0100) Subject: Return the ID of the Sone with the post. X-Git-Tag: 0.3.1~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2e3b2fb869041cd573ea2acd0623d2f499d4ab1b;p=Sone.git Return the ID of the Sone with the post. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java index b0d8ec5..452fc5a 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java @@ -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();