X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FIndexPage.java;h=589e7aa1244f8643e30bff835ccf63210f23ce3d;hb=b32a06c6f1b42c17e059b1a5da7069b0ca145996;hp=3965aee9afddf8c9e83309ee42e19ac1e8696d26;hpb=92fadc4bbfacfcfc8b639961b35c2dc873cf21fa;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/IndexPage.java b/src/main/java/net/pterodactylus/sone/web/IndexPage.java index 3965aee..589e7aa 100644 --- a/src/main/java/net/pterodactylus/sone/web/IndexPage.java +++ b/src/main/java/net/pterodactylus/sone/web/IndexPage.java @@ -41,7 +41,7 @@ public class IndexPage extends SoneTemplatePage { * The Sone web interface */ public IndexPage(Template template, WebInterface webInterface) { - super("index.html", template, "Page.Index.Title", webInterface); + super("index.html", template, "Page.Index.Title", webInterface, true); } // @@ -57,7 +57,7 @@ public class IndexPage extends SoneTemplatePage { Sone sone = getCurrentSone(request.getToadletContext()); List allPosts = new ArrayList(); allPosts.addAll(sone.getPosts()); - for (Sone friendSone : sone.getFriendSones()) { + for (Sone friendSone : sone.getFriends()) { allPosts.addAll(friendSone.getPosts()); } Collections.sort(allPosts, new Comparator() { @@ -71,16 +71,4 @@ public class IndexPage extends SoneTemplatePage { template.set("posts", allPosts); } - // - // SONETEMPLATEPAGE METHODS - // - - /** - * {@inheritDoc} - */ - @Override - protected boolean requiresLogin() { - return true; - } - }