X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FReplyShell.java;h=afcf295b2d56b1cf4c366b38c00d114f115f1e2d;hb=e122164af747b806cc0b3d8cc17e82fa88aabaef;hp=03a4c53dfdfd5deaccc15d1217657ff50fb6503e;hpb=0c9e223a0f72b28d5d398671a03f9021afd20f0d;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/data/ReplyShell.java b/src/main/java/net/pterodactylus/sone/data/ReplyShell.java index 03a4c53..afcf295 100644 --- a/src/main/java/net/pterodactylus/sone/data/ReplyShell.java +++ b/src/main/java/net/pterodactylus/sone/data/ReplyShell.java @@ -27,6 +27,15 @@ import java.util.UUID; */ public class ReplyShell extends Reply implements Shell { + /** The shell creator. */ + public static final ShellCreator creator = new ShellCreator() { + + @Override + public Shell createShell() { + return new ReplyShell(); + } + }; + /** The Sone that posted this reply. */ private Sone sone; @@ -172,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); } /**