Rewrite shell cache to create shells, if necessary.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / ReplyShell.java
index 11a6ee5..afcf295 100644 (file)
@@ -181,7 +181,7 @@ public class ReplyShell extends Reply implements Shell<Reply> {
         */
        @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);
        }
 
        /**