From 40b56cd75189d0b78d93242eb808be89ebca9b6e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Oct 2021 01:30:14 +0300 Subject: ActivityPub: fix HTTP status for Delete handler --- src/main/java/com/juick/www/api/activity/Profile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com') 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(); -- cgit v1.2.3