Don’t wrap posts in an additional list
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 3 Mar 2016 13:15:46 +0000 (14:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 3 Mar 2016 13:15:46 +0000 (14:15 +0100)
src/main/java/net/pterodactylus/sone/web/NewPage.java

index 1757952..ee28a58 100644 (file)
@@ -74,7 +74,7 @@ public class NewPage extends SoneTemplatePage {
                }
 
                /* filter and sort them. */
-               List<Post> sortedPosts = ListNotificationFilters.filterPosts(new ArrayList<Post>(posts), webInterface.getCurrentSone(request.getToadletContext(), false));
+               List<Post> sortedPosts = ListNotificationFilters.filterPosts(posts, webInterface.getCurrentSone(request.getToadletContext(), false));
                Collections.sort(sortedPosts, Post.TIME_COMPARATOR);
 
                /* paginate them. */