From: David ‘Bombe’ Roden Date: Thu, 3 Mar 2016 13:15:46 +0000 (+0100) Subject: Don’t wrap posts in an additional list X-Git-Tag: 0.9.5^2~38 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=07150f7aa124309baad7a2e38482b93c7339562c;p=Sone.git Don’t wrap posts in an additional list --- diff --git a/src/main/java/net/pterodactylus/sone/web/NewPage.java b/src/main/java/net/pterodactylus/sone/web/NewPage.java index 1757952..ee28a58 100644 --- a/src/main/java/net/pterodactylus/sone/web/NewPage.java +++ b/src/main/java/net/pterodactylus/sone/web/NewPage.java @@ -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. */