From: David ‘Bombe’ Roden Date: Sun, 20 Nov 2011 20:43:25 +0000 (+0100) Subject: Don’t create new Sone, the existence has been checked before. X-Git-Tag: 0.7.4^2~6 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=8442f9e38e7f7f0976057e35fc017e0640e226af;hp=2b5d2439bd2c609fa8d7cd743e6724a49980cbde Don’t create new Sone, the existence has been checked before. --- diff --git a/src/main/java/net/pterodactylus/sone/fcp/GetPostFeedCommand.java b/src/main/java/net/pterodactylus/sone/fcp/GetPostFeedCommand.java index d4b175c..4c07359 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/GetPostFeedCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/GetPostFeedCommand.java @@ -64,7 +64,7 @@ public class GetPostFeedCommand extends AbstractSoneCommand { if (!getCore().hasSone(friendSoneId)) { continue; } - allPosts.addAll(getCore().getSone(friendSoneId).getPosts()); + allPosts.addAll(getCore().getSone(friendSoneId, false).getPosts()); } allPosts.addAll(getCore().getDirectedPosts(sone)); allPosts = Filters.filteredSet(allPosts, Post.FUTURE_POSTS_FILTER);