From a4a36be82ab54c924a6c9cf6b01a7fef3f2e9124 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 6 Dec 2010 05:55:52 +0100 Subject: [PATCH] Mark posts and replies as known when they are removed. --- src/main/java/net/pterodactylus/sone/core/Core.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 52ebfab..5d176ce 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -885,6 +885,9 @@ public class Core implements IdentityListener { if (!soneRescueMode) { for (Post post : storedSone.getPosts()) { posts.remove(post.getId()); + if (!sone.getPosts().contains(post)) { + markPostKnown(post); + } } } synchronized (newPosts) { @@ -902,6 +905,9 @@ public class Core implements IdentityListener { if (!soneRescueMode) { for (Reply reply : storedSone.getReplies()) { replies.remove(reply.getId()); + if (!sone.getReplies().contains(reply)) { + markReplyKnown(reply); + } } } synchronized (newReplies) { -- 2.7.4