X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FNewPage.java;h=ee28a58db0f36d1f23a8af10bdc5fc84a6ec140d;hb=07150f7aa124309baad7a2e38482b93c7339562c;hp=597734975eb0b940947cd67ac77b91a138a6539d;hpb=f229fe41f708d2b275c20ceb9aba5993761218a3;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/NewPage.java b/src/main/java/net/pterodactylus/sone/web/NewPage.java index 5977349..ee28a58 100644 --- a/src/main/java/net/pterodactylus/sone/web/NewPage.java +++ b/src/main/java/net/pterodactylus/sone/web/NewPage.java @@ -1,5 +1,5 @@ /* - * Sone - NewPage.java - Copyright © 2013 David Roden + * Sone - NewPage.java - Copyright © 2013–2015 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -74,7 +74,7 @@ public class NewPage extends SoneTemplatePage { } /* filter and sort them. */ - List sortedPosts = ListNotificationFilters.filterPosts(new ArrayList(posts), webInterface.getCurrentSone(request.getToadletContext(), false)); + List sortedPosts = ListNotificationFilters.filterPosts(posts, webInterface.getCurrentSone(request.getToadletContext(), false)); Collections.sort(sortedPosts, Post.TIME_COMPARATOR); /* paginate them. */