aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-04 18:08:40 +0300
committerGravatar Vitaly Takmazov2023-01-04 18:08:40 +0300
commit703115ac6a1da44bc0759d21c3210f265675caa3 (patch)
tree59cefb7018121483eac9bfe988131d0c6408a9bd /src/main
parent58359b1e45861fea725aa7accfe5879d2d7fbeb7 (diff)
Respond with HTTP 202 to stop sending unknown note updates
Diffstat (limited to 'src/main')
-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 d2468d70..43a797fb 100644
--- a/src/main/java/com/juick/www/api/activity/Profile.java
+++ b/src/main/java/com/juick/www/api/activity/Profile.java
@@ -399,7 +399,7 @@ public class Profile {
return new ResponseEntity<>(HttpStatus.SERVICE_UNAVAILABLE);
} else {
logger.warn("Update not found: {}", note.getId());
- return new ResponseEntity<>(HttpStatus.NOT_FOUND);
+ return new ResponseEntity<>(HttpStatus.ACCEPTED);
}
} else {
logger.warn("Invalid Update: {}", jsonMapper.writeValueAsString(activity));