aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-06 21:53:33 +0300
committerGravatar Vitaly Takmazov2018-10-06 21:53:33 +0300
commit48508ed03cbb0c12986b60b84a7667c0955b145d (patch)
tree1e5c6a1cebb081172fddafd7a0a155fbe3e96198 /juick-server/src/main/java
parent2cf0e365e7dc4a670fbf8f2fd1045209a5cc5c3f (diff)
fix response statuses
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/Profile.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
index 392acfe6..873f0cea 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
@@ -273,6 +273,7 @@ public class Profile {
if (activity.getObject() instanceof String) {
// Delete user
applicationEventPublisher.publishEvent(new DeleteUserEvent(this, (String)activity.getObject()));
+ return new ResponseEntity<>(HttpStatus.OK);
}
}
if (activity instanceof Create) {
@@ -286,6 +287,7 @@ public class Profile {
User user = new User();
user.setUri(URI.create(activity.getActor()));
commandsManager.processCommand(user, String.format("#%s %s", postId, note.getContent()), URI.create(note.getAttachment().getUrl()));
+ return new ResponseEntity<>(HttpStatus.OK);
}
}