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 reply if both its post and its Sone are not shells.
[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
df66b20
..
7bcddfa
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/PostShell.java
+++ b/
src/main/java/net/pterodactylus/sone/data/PostShell.java
@@
-30,6
+30,15
@@
import java.util.UUID;
*/
public class PostShell extends Post implements Shell<Post> {
*/
public class PostShell extends Post implements Shell<Post> {
+ /** The shell creator. */
+ public static final ShellCreator<Post> creator = new ShellCreator<Post>() {
+
+ @Override
+ public Shell<Post> createShell() {
+ return new PostShell();
+ }
+ };
+
/** The GUID of the post. */
private UUID id;
/** The GUID of the post. */
private UUID id;