Assume a post is visible if the trust updater has not received the trust value yet.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Sep 2012 06:57:18 +0000 (08:57 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Sep 2012 06:57:26 +0000 (08:57 +0200)
src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java

index 51bb1c0..6efee27 100644 (file)
@@ -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;