aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-25 01:30:14 +0300
committerGravatar Vitaly Takmazov2021-10-25 01:30:14 +0300
commit40b56cd75189d0b78d93242eb808be89ebca9b6e (patch)
tree11d4034b8fe24c6ede789bd5b68abebf6545ac28 /src/main/java/com/juick/www
parent2cbaa2dd212bb81d34e7b52eff4d03e4780d02de (diff)
ActivityPub: fix HTTP status for Delete handler
Diffstat (limited to 'src/main/java/com/juick/www')
-rw-r--r--src/main/java/com/juick/www/api/activity/Profile.java2
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();