Add unit test for mark as known page and slightly improve the logic
[Sone.git] / src / main / java / net / pterodactylus / sone / web / MarkAsKnownPage.java
index dc1841b..57ea00f 100644 (file)
@@ -77,7 +77,7 @@ public class MarkAsKnownPage extends SoneTemplatePage {
                                        continue;
                                }
                                webInterface.getCore().markReplyKnown(reply.get());
-                       } else if (type.equals("sone")) {
+                       } else {
                                Optional<Sone> sone = webInterface.getCore().getSone(id);
                                if (!sone.isPresent()) {
                                        continue;