From 57e3f4a677e70fbf3b22231677d3c13fce793826 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 4 Feb 2011 06:07:10 +0100 Subject: [PATCH] Set local Sones in posts deliverd by AJAX. --- 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 127834b..4e5f1b8 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java @@ -97,6 +97,7 @@ public class GetPostAjaxPage extends JsonPage { TemplateContext templateContext = webInterface.getTemplateContextFactory().createTemplateContext(); templateContext.set("post", post); templateContext.set("currentSone", currentSone); + templateContext.set("localSones", webInterface.getCore().getLocalSones()); try { postTemplate.render(templateContext, stringWriter); } catch (TemplateException te1) { -- 2.7.4