From: David ‘Bombe’ Roden Date: Thu, 14 Oct 2010 12:42:47 +0000 (+0200) Subject: Only allow unshelling a post if its Sone is not a shell. X-Git-Tag: 0.1-RC1~389 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=5e815759fafbf3a9fa0ea031f2520826ba3029af;p=Sone.git Only allow unshelling a post if its Sone is not a shell. --- diff --git a/src/main/java/net/pterodactylus/sone/data/PostShell.java b/src/main/java/net/pterodactylus/sone/data/PostShell.java index 7bcddfa..b0cb8e6 100644 --- a/src/main/java/net/pterodactylus/sone/data/PostShell.java +++ b/src/main/java/net/pterodactylus/sone/data/PostShell.java @@ -199,7 +199,7 @@ public class PostShell extends Post implements Shell { */ @Override public boolean canUnshell() { - return (id != null) && (sone != null) && (time != null) && (text != null); + return (id != null) && (sone != null) && (!(sone instanceof Shell)) && (time != null) && (text != null); } /**