From: David ‘Bombe’ Roden Date: Fri, 5 Jul 2013 05:52:42 +0000 (+0200) Subject: Don’t clobber local Sones. X-Git-Tag: 0.8.6^2~7 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=68b4879115693fe93dae23a61c46928be1942144;p=Sone.git Don’t clobber local Sones. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 008702c..9b60076 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -2165,6 +2165,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, @SuppressWarnings("synthetic-access") public void run() { Sone sone = getRemoteSone(identity.getId(), false); + if (sone.isLocal()) { + return; + } sone.setIdentity(identity); sone.setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), sone.getLatestEdition())); soneDownloader.addSone(sone);