diff options
author | 2018-10-05 11:22:33 +0300 | |
---|---|---|
committer | 2018-10-05 11:22:33 +0300 | |
commit | 0a67254245046236f82733c95e84a23ffcfdc45c (patch) | |
tree | 1f77eabc32a2d5a2bfe860ade50eaf6efd6379f6 /juick-server/src/main/java/com/juick/server/ActivityPubManager.java | |
parent | 07ac8017afa883f0fb3748a02bc1236882bfd06c (diff) |
ActivityPub: change Note uri
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/ActivityPubManager.java')
-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 f08754c6..cc63a4ce 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -161,7 +161,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene } public String messageUri(Message msg) { UriComponentsBuilder uri = UriComponentsBuilder.fromUriString(baseUri); - uri.replacePath(String.format("/m/%d", msg.getMid())); + uri.replacePath(String.format("/n/%d", msg.getMid())); if (MessageUtils.isReply(msg)) { uri.fragment(String.valueOf(msg.getRid())); } @@ -169,7 +169,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene } public String messageUri(int mid, int rid) { UriComponentsBuilder uri = UriComponentsBuilder.fromUriString(baseUri); - uri.replacePath(String.format("/m/%d", mid)); + uri.replacePath(String.format("/n/%d", mid)); if (rid > 0) { uri.fragment(String.valueOf(rid)); } |