From: David ‘Bombe’ Roden Date: Fri, 8 Apr 2011 05:11:32 +0000 (+0200) Subject: Mark deleted posts and replies as known. X-Git-Tag: 0.6.1^2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=640c0111f7b387c33bc7933c2fa898ceb0b32796;p=Sone.git Mark deleted posts and replies as known. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 93caddd..75b108b 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1493,6 +1493,10 @@ public class Core implements IdentityListener, UpdateListener { synchronized (posts) { posts.remove(post.getId()); } + synchronized (newPosts) { + markPostKnown(post); + knownPosts.remove(post.getId()); + } saveSone(post.getSone()); } @@ -1618,6 +1622,10 @@ public class Core implements IdentityListener, UpdateListener { synchronized (replies) { replies.remove(reply.getId()); } + synchronized (newReplies) { + markReplyKnown(reply); + knownReplies.remove(reply.getId()); + } sone.removeReply(reply); saveSone(sone); }