aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-05-28 19:57:18 +0300
committerGravatar Vitaly Takmazov2019-05-28 19:57:18 +0300
commit8f5441d43dcb9a7851ec3c79f1714eb47aa25a6f (patch)
treeaca76a672f1972895ed3dd879a4095bda3e91c86 /src/main/java/com/juick
parent51af554f75475019911246cf675fe661c5a04b4a (diff)
PROTOCOL CHANGES in mastodon 2.8(?)
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/api/activity/Profile.java7
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());