Update years in copyright line
[Sone.git] / src / main / java / net / pterodactylus / sone / web / UnbookmarkPage.java
index 7dfe301..80b3ce6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - UnbookmarkPage.java - Copyright © 2011–2013 David Roden
+ * Sone - UnbookmarkPage.java - Copyright © 2011–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
@@ -67,7 +67,7 @@ public class UnbookmarkPage extends SoneTemplatePage {
                if (id.equals("allNotLoaded")) {
                        Set<Post> posts = webInterface.getCore().getBookmarkedPosts();
                        for (Post post : posts) {
-                               if (post.getSone() == null) {
+                               if (post.isLoaded()) {
                                        webInterface.getCore().unbookmarkPost(post);
                                }
                        }