diff options
author | Vitaly Takmazov | 2023-01-04 18:08:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-04 18:08:40 +0300 |
commit | 703115ac6a1da44bc0759d21c3210f265675caa3 (patch) | |
tree | 59cefb7018121483eac9bfe988131d0c6408a9bd /src/main/java/com/juick/www/api | |
parent | 58359b1e45861fea725aa7accfe5879d2d7fbeb7 (diff) |
Respond with HTTP 202 to stop sending unknown note updates
Diffstat (limited to 'src/main/java/com/juick/www/api')
-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 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)); |