From: David ‘Bombe’ Roden Date: Wed, 13 Apr 2011 05:34:46 +0000 (+0200) Subject: Only include an image in the fingerprint if it has been inserted. X-Git-Tag: beta-freefall-0.6.2-1~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6d660240ba79ea710fc80e816871413c953ee604;p=Sone.git Only include an image in the fingerprint if it has been inserted. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index d7df845..ac7e11d 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -298,7 +298,9 @@ public class Album implements Fingerprintable { /* add images. */ fingerprint.append("Images("); for (Image image : images) { - fingerprint.append(image.getFingerprint()); + if (image.isInserted()) { + fingerprint.append(image.getFingerprint()); + } } fingerprint.append(')');