Set local Sones in posts deliverd by AJAX.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 4 Feb 2011 05:07:10 +0000 (06:07 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 4 Feb 2011 05:07:10 +0000 (06:07 +0100)
src/main/java/net/pterodactylus/sone/web/ajax/GetPostAjaxPage.java

index 127834b..4e5f1b8 100644 (file)
@@ -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) {