Update years in copyright line
[Sone.git] / src / main / java / net / pterodactylus / sone / notify / ListNotificationFilters.java
index 5289081..1d4aa68 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - ListNotificationFilters.java - Copyright © 2010–2013 David Roden
+ * Sone - ListNotificationFilters.java - Copyright © 2010–2015 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -222,10 +222,10 @@ public class ListNotificationFilters {
         */
        public static boolean isPostVisible(Sone sone, Post post) {
                checkNotNull(post, "post must not be null");
-               Sone postSone = post.getSone();
-               if (postSone == null) {
+               if (!post.isLoaded()) {
                        return false;
                }
+               Sone postSone = post.getSone();
                if (sone != null) {
                        Trust trust = postSone.getIdentity().getTrust((OwnIdentity) sone.getIdentity());
                        if (trust != null) {