From: David ‘Bombe’ Roden Date: Fri, 4 Feb 2011 05:07:10 +0000 (+0100) Subject: Set local Sones in posts deliverd by AJAX. X-Git-Tag: 0.4.4^2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=57e3f4a677e70fbf3b22231677d3c13fce793826;p=Sone.git Set local Sones in posts deliverd by AJAX. --- 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) {