From 07150f7aa124309baad7a2e38482b93c7339562c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 3 Mar 2016 14:15:46 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20wrap=20posts=20in=20an=20additio?= =?utf8?q?nal=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/web/NewPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.7.4