projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Only allow unshelling a post if its Sone is not a shell.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
PostShell.java
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
(file)
--- 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<Post> {
*/
@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);
}
/**