From: David ‘Bombe’ Roden Date: Mon, 8 Nov 2010 20:06:13 +0000 (+0100) Subject: A Sone is only new if it has no request URI. X-Git-Tag: 0.2.1~18 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b80d07048956c0df95eb0c90cb330925a265607f;p=Sone.git A Sone is only new if it has no request URI. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 055ede4..34be389 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -528,6 +528,7 @@ public class Core implements IdentityListener { synchronized (remoteSones) { boolean newSone = !isRemoteSone(identity.getId()); final Sone sone = getRemoteSone(identity.getId()).setIdentity(identity); + newSone &= sone.getRequestUri() == null; sone.setRequestUri(getSoneUri(identity.getRequestUri())); sone.setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), (long) 0)); if (newSone) {