diff options
author | Vitaly Takmazov | 2018-10-24 00:39:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-24 00:39:13 +0300 |
commit | ee7070c3330c5f5a3d44a37c7758dcf534d5a8ef (patch) | |
tree | 420d3c19c30934c053c10fd9775978163d0a0ba8 /juick-server | |
parent | 5b88a7355c554e500199d6c233ae891459b602ac (diff) |
ReplyToUri is Note
Diffstat (limited to 'juick-server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java index 6cfcf377..a206c47f 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -223,10 +223,10 @@ public class ActivityPubManager implements ActivityListener, NotificationListene return hashtag; }).collect(Collectors.toList())); if (msg.getReplyToUri() != null && msg.getReplyToUri().toASCIIString().length() > 0) { - Optional<Context> createContext = signatureManager.getContext(msg.getReplyToUri()); - if (createContext.isPresent()) { - Create activity = (Create) createContext.get(); - Optional<Context> personContext = signatureManager.getContext(URI.create(activity.getActor())); + Optional<Context> noteContext = signatureManager.getContext(msg.getReplyToUri()); + if (noteContext.isPresent()) { + Note activity = (Note) noteContext.get(); + Optional<Context> personContext = signatureManager.getContext(URI.create(activity.getAttributedTo())); if (personContext.isPresent()) { Person person = (Person) personContext.get(); note.getTags().add(new Mention(person.getUrl(), person.getPreferredUsername())); |