aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-29 13:10:37 +0300
committerGravatar Vitaly Takmazov2018-11-29 13:11:21 +0300
commitea950361486f1bd78da23b7163baae335ddca280 (patch)
tree2a2e282a73216f9bd3cc6dbf8de7344b2f646df6 /src/main
parenta1058eeef3963634853f8470d1957ecf58c4481a (diff)
ActivityPub likes fix
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/server/api/activity/Profile.java2
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));