diff options
author | Vitaly Takmazov | 2021-10-25 01:30:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-25 01:30:14 +0300 |
commit | 40b56cd75189d0b78d93242eb808be89ebca9b6e (patch) | |
tree | 11d4034b8fe24c6ede789bd5b68abebf6545ac28 /src | |
parent | 2cbaa2dd212bb81d34e7b52eff4d03e4780d02de (diff) |
ActivityPub: fix HTTP status for Delete handler
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/www/api/activity/Profile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/activity/Profile.java b/src/main/java/com/juick/www/api/activity/Profile.java index 495ca8f9..3b00a301 100644 --- a/src/main/java/com/juick/www/api/activity/Profile.java +++ b/src/main/java/com/juick/www/api/activity/Profile.java @@ -390,7 +390,7 @@ public class Profile { messagesService.deleteReply(actor, objectId); } // accept all authenticated Delete activities - return new ResponseEntity<>(CommandResult.fromString("Delete request accepted"), HttpStatus.OK); + return new ResponseEntity<>(CommandResult.fromString("Delete request accepted"), HttpStatus.ACCEPTED); } if (activity instanceof Like || activity instanceof Announce) { String messageUri = activity.getObject().getId(); |