X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FWebInterface.java;h=a5376afea67d4dc486292cc91c95cfd72510d4ed;hb=40e59c4c4e19798504530ad7581872bfbc3627cf;hp=95978ce57c6bd70eac48cf220bd6e97fecc737f4;hpb=2528f9e7901cdbc39c38272b13a939665f00ab80;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 95978ce..a5376af 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -585,6 +585,8 @@ public class WebInterface implements CoreListener { newPostNotification.add(post); if (!hasFirstStartNotification()) { notificationManager.addNotification(newPostNotification); + } else { + getCore().markPostKnown(post); } } @@ -599,6 +601,8 @@ public class WebInterface implements CoreListener { newReplyNotification.add(reply); if (!hasFirstStartNotification()) { notificationManager.addNotification(newReplyNotification); + } else { + getCore().markReplyKnown(reply); } } @@ -643,6 +647,22 @@ public class WebInterface implements CoreListener { } /** + * {@inheritDoc} + */ + @Override + public void soneLocked(Sone sone) { + /* TODO */ + } + + /** + * {@inheritDoc} + */ + @Override + public void soneUnlocked(Sone sone) { + /* TODO */ + } + + /** * Template provider implementation that uses * {@link WebInterface#createReader(String)} to load templates for * inclusion.