From: David ‘Bombe’ Roden Date: Sun, 20 Nov 2011 20:43:11 +0000 (+0100) Subject: Create Sones when following. X-Git-Tag: 0.7.4^2~7 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2b5d2439bd2c609fa8d7cd743e6724a49980cbde;p=Sone.git Create Sones when following. getSone(id, true) can still return null if the ID is obviously invalid, e.g. an empty String. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7098299..8c2dabb 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1061,7 +1061,7 @@ public class Core extends AbstractService implements IdentityListener, UpdateLis */ public void followSone(Sone sone, String soneId) { Validation.begin().isNotNull("Sone", sone).isNotNull("Sone ID", soneId).check(); - Sone followedSone = getSone(soneId); + Sone followedSone = getSone(soneId, true); if (followedSone == null) { logger.log(Level.INFO, String.format("Ignored Sone with invalid ID: %s", soneId)); return;