From: David ‘Bombe’ Roden Date: Fri, 7 Sep 2012 06:57:18 +0000 (+0200) Subject: Assume a post is visible if the trust updater has not received the trust value yet. X-Git-Tag: 0.8.3^2~54^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f3728b9ea96e07235ae0b11a7b390d2af525d482;p=Sone.git Assume a post is visible if the trust updater has not received the trust value yet. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java index 51bb1c0..6efee27 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java @@ -233,7 +233,14 @@ public class ListNotificationFilters { return false; } } else { - return false; + /* + * a null trust means that the trust updater has not yet + * received a trust value for this relation. if we return false, + * the post feed will stay empty until the trust updater has + * received trust values. to prevent this we simply assume that + * posts are visible if there is no trust. + */ + return true; } if ((!postSone.equals(sone)) && !sone.hasFriend(postSone.getId()) && !sone.equals(post.getRecipient())) { return false;