From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 12:42:34 +0000 (+0200) Subject: Only allow unshelling a reply if both its post and its Sone are not shells. X-Git-Tag: 0.1-RC1~390 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cc4c5687f214075905a058d562cb5c7abf67b8e9;p=Sone.git Only allow unshelling a reply if both its post and its Sone are not shells. --- diff --git a/src/main/java/net/pterodactylus/sone/data/ReplyShell.java b/src/main/java/net/pterodactylus/sone/data/ReplyShell.java index 11a6ee5..afcf295 100644 --- a/src/main/java/net/pterodactylus/sone/data/ReplyShell.java +++ b/src/main/java/net/pterodactylus/sone/data/ReplyShell.java @@ -181,7 +181,7 @@ public class ReplyShell extends Reply implements Shell { */ @Override public boolean canUnshell() { - return (sone != null) && (id != null) && (post != null) && (time != null) && (text != null); + return (sone != null) && (!(sone instanceof Shell)) && (id != null) && (post != null) && (!(post instanceof Shell)) && (time != null) && (text != null); } /**