From 48508ed03cbb0c12986b60b84a7667c0955b145d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 6 Oct 2018 21:53:33 +0300 Subject: fix response statuses --- juick-server/src/main/java/com/juick/server/api/activity/Profile.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-server/src/main/java') 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); } } -- cgit v1.2.3