aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api/activity
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 14:18:53 +0300
committerGravatar Vitaly Takmazov2018-10-04 14:18:53 +0300
commit051fd4608ebd30e94eb847906571f5f221d3e952 (patch)
tree23b4e51a768dfb4ae2dd1b767fece49f1817cabf /juick-server/src/main/java/com/juick/server/api/activity
parent873fbbc8b7f59c68c6bf37ff9af79c8fb2aef8ed (diff)
Undo object deserialized as Map
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/activity')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/Profile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
index 2e089330..23cd74ce 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java
@@ -240,8 +240,8 @@ public class Profile {
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
}
if (activity instanceof Undo) {
- Follow undoFollow = (Follow) ((Undo) activity).getObject();
- applicationEventPublisher.publishEvent(new UndoFollowEvent(this, ((Undo) activity).getActor(), undoFollow));
+ String follower = (String)((Map) ((Undo) activity).getObject()).get("object");
+ applicationEventPublisher.publishEvent(new UndoFollowEvent(this, ((Undo) activity).getActor(), follower));
return new ResponseEntity<>(HttpStatus.OK);
}
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);