diff options
author | 2018-11-29 13:10:37 +0300 | |
---|---|---|
committer | 2018-11-29 13:11:21 +0300 | |
commit | ea950361486f1bd78da23b7163baae335ddca280 (patch) | |
tree | 2a2e282a73216f9bd3cc6dbf8de7344b2f646df6 /src/main/java/com/juick/server/api/activity/Profile.java | |
parent | a1058eeef3963634853f8470d1957ecf58c4481a (diff) |
ActivityPub likes fix
Diffstat (limited to 'src/main/java/com/juick/server/api/activity/Profile.java')
-rw-r--r-- | src/main/java/com/juick/server/api/activity/Profile.java | 2 |
1 files changed, 1 insertions, 1 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 e8fb45ec..305b7c4a 100644 --- a/src/main/java/com/juick/server/api/activity/Profile.java +++ b/src/main/java/com/juick/server/api/activity/Profile.java @@ -361,7 +361,7 @@ public class Profile { } } if (activity instanceof Like || activity instanceof Announce) { - applicationEventPublisher.publishEvent(new AnnounceEvent(this, activity.getActor(), (String)((Map)activity.getObject()).get("object"))); + applicationEventPublisher.publishEvent(new AnnounceEvent(this, activity.getActor(), (String)activity.getObject())); return new ResponseEntity<>(HttpStatus.OK); } logger.warn("Unknown activity: {}", jsonMapper.writeValueAsString(activity)); |