projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor text parser
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
UnbookmarkPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/UnbookmarkPage.java
b/src/main/java/net/pterodactylus/sone/web/UnbookmarkPage.java
index
7dfe301
..
51da550
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/UnbookmarkPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/UnbookmarkPage.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - UnbookmarkPage.java - Copyright © 2011–201
3
David Roden
+ * Sone - UnbookmarkPage.java - Copyright © 2011–201
6
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
*
* 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 (id.equals("allNotLoaded")) {
Set<Post> posts = webInterface.getCore().getBookmarkedPosts();
for (Post post : posts) {
- if (post.
getSone() == null
) {
+ if (post.
isLoaded()
) {
webInterface.getCore().unbookmarkPost(post);
}
}
webInterface.getCore().unbookmarkPost(post);
}
}