diff options
author | 2019-05-28 19:57:18 +0300 | |
---|---|---|
committer | 2019-05-28 19:57:18 +0300 | |
commit | 8f5441d43dcb9a7851ec3c79f1714eb47aa25a6f (patch) | |
tree | aca76a672f1972895ed3dd879a4095bda3e91c86 /src/main/java/com/juick/server | |
parent | 51af554f75475019911246cf675fe661c5a04b4a (diff) |
PROTOCOL CHANGES in mastodon 2.8(?)
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r-- | src/main/java/com/juick/server/api/activity/Profile.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/activity/Profile.java b/src/main/java/com/juick/server/api/activity/Profile.java index a7ba65a5..7ec3f228 100644 --- a/src/main/java/com/juick/server/api/activity/Profile.java +++ b/src/main/java/com/juick/server/api/activity/Profile.java @@ -353,6 +353,13 @@ public class Profile { } } if (activity instanceof Delete) { + if (activity.getObject() instanceof String) { + // Delete gone user + // TODO: check if it is really deleted and remove copy-paste + if (activity.getActor().equals(activity.getObject())) { + return new ResponseEntity<>(CommandResult.fromString("Delete request accepted"), HttpStatus.ACCEPTED); + } + } Map<String, Object> tombstone = (Map<String, Object>) activity.getObject(); if (tombstone.get("type").equals("Tombstone")) { URI actor = URI.create(activity.getActor()); |