projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🚧 Send event when mention is removed
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
CreatePostCommand.java
diff --git
a/src/main/java/net/pterodactylus/sone/fcp/CreatePostCommand.java
b/src/main/java/net/pterodactylus/sone/fcp/CreatePostCommand.java
index
2c8456d
..
221ea7a
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/fcp/CreatePostCommand.java
+++ b/
src/main/java/net/pterodactylus/sone/fcp/CreatePostCommand.java
@@
-29,7
+29,7
@@
import freenet.support.SimpleFieldSet;
/**
* FCP command that creates a new {@link Post}.
*
/**
* FCP command that creates a new {@link Post}.
*
- * @see Core#createPost(Sone,
Optional
, String)
+ * @see Core#createPost(Sone,
Sone
, String)
*/
public class CreatePostCommand extends AbstractSoneCommand {
*/
public class CreatePostCommand extends AbstractSoneCommand {
@@
-57,7
+57,7
@@
public class CreatePostCommand extends AbstractSoneCommand {
if (sone.equals(recipient)) {
return new ErrorResponse("Sone and Recipient must not be the same.");
}
if (sone.equals(recipient)) {
return new ErrorResponse("Sone and Recipient must not be the same.");
}
- Post post = getCore().createPost(sone,
Optional.fromNullable(recipient)
, text);
+ Post post = getCore().createPost(sone,
recipient
, text);
return new Response("PostCreated", new SimpleFieldSetBuilder().put("Post", post.getId()).get());
}
return new Response("PostCreated", new SimpleFieldSetBuilder().put("Post", post.getId()).get());
}