From: David ‘Bombe’ Roden Date: Sat, 1 Mar 2014 12:46:00 +0000 (+0100) Subject: Initialize new remote Sones with a dummy Client. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6c915fbc2c04de0f01e9836562e68c7bdfe9a85e;p=Sone.git Initialize new remote Sones with a dummy Client. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 6d67c25..5d8e3b2 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -584,7 +584,7 @@ public class Core extends AbstractService implements SoneProvider { return existingSone.get(); } boolean newSone = !existingSone.isPresent(); - final Sone sone = newSone ? database.newSoneBuilder().by(identity.getId()).build(Optional.absent()) : existingSone.get(); + final Sone sone = newSone ? database.newSoneBuilder().by(identity.getId()).using(new Client("Sone", SonePlugin.VERSION.toString())).build(Optional.absent()) : existingSone.get(); sone.modify().setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), (long) 0)).update(); if (newSone) { synchronized (knownSones) {