package net.pterodactylus.sone.web;
+import java.util.Set;
+
+import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.web.page.Page.Request.Method;
import net.pterodactylus.util.template.Template;
import net.pterodactylus.util.template.TemplateContext;
webInterface.getCore().unbookmarkPost(id);
throw new RedirectException(returnPage);
}
+ String id = request.getHttpRequest().getParam("post");
+ if (id.equals("allNotLoaded")) {
+ Set<Post> posts = webInterface.getCore().getBookmarkedPosts();
+ for (Post post : posts) {
+ if (post.getSone() == null) {
+ webInterface.getCore().unbookmark(post);
+ }
+ }
+ throw new RedirectException("bookmarks.html");
+ }
}
}