From 2e3b2fb869041cd573ea2acd0623d2f499d4ab1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 27 Nov 2010 00:01:56 +0100 Subject: [PATCH] Return the ID of the Sone with the post. --- src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.7.4