diff options
author | Vitaly Takmazov | 2018-10-07 13:14:33 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-07 13:14:33 +0300 |
commit | ae2b7552bda919e7eb505139eb417656ae2568a1 (patch) | |
tree | f484dda786eda1acbf1a99836fb2a5dd54d9bcbe /juick-server/src/main/java/com/juick/server | |
parent | 1dbaac46c7205c184ff2365031d918083b2dce57 (diff) |
ActivityPub: fix inReplyTo serialization
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 4 |
1 files changed, 2 insertions, 2 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 c1790deb..10ca9951 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -183,8 +183,8 @@ public class ActivityPubManager implements ActivityListener, NotificationListene note.setUrl(PlainTextFormatter.formatUrl(msg)); note.setAttributedTo(personUri(msg.getUser())); if (MessageUtils.isReply(msg)) { - if (msg.getReplyUri().toASCIIString().length() > 0) { - note.setInReplyTo(msg.getReplyUri().toASCIIString()); + if (msg.getReplyToUri().toASCIIString().length() > 0) { + note.setInReplyTo(msg.getReplyToUri().toASCIIString()); } else { note.setInReplyTo(messageUri(msg.getMid(), msg.getReplyto())); } |