Initialize new remote Sones with a dummy Client.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 1 Mar 2014 12:46:00 +0000 (13:46 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 1 Mar 2014 12:46:00 +0000 (13:46 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 6d67c25..5d8e3b2 100644 (file)
@@ -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.<SoneCreated>absent()) : existingSone.get();
+                       final Sone sone = newSone ? database.newSoneBuilder().by(identity.getId()).using(new Client("Sone", SonePlugin.VERSION.toString())).build(Optional.<SoneCreated>absent()) : existingSone.get();
                        sone.modify().setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), (long) 0)).update();
                        if (newSone) {
                                synchronized (knownSones) {