summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/note.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-07 17:05:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-07 17:05:14 +0900
commitc5f23bce7864bc1cffb82b54f62e019c4c04137d (patch)
tree8ec7313f4ec333bcb4ca3e19a5106c602740870c /src/remote/activitypub/renderer/note.ts
parentRefactor (diff)
downloadmisskey-c5f23bce7864bc1cffb82b54f62e019c4c04137d.tar.gz
misskey-c5f23bce7864bc1cffb82b54f62e019c4c04137d.tar.bz2
misskey-c5f23bce7864bc1cffb82b54f62e019c4c04137d.zip
Implement like
Diffstat (limited to 'src/remote/activitypub/renderer/note.ts')
-rw-r--r--src/remote/activitypub/renderer/note.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/note.ts b/src/remote/activitypub/renderer/note.ts
index b971a53951..bbab63db36 100644
--- a/src/remote/activitypub/renderer/note.ts
+++ b/src/remote/activitypub/renderer/note.ts
@@ -23,7 +23,7 @@ export default async (user: IUser, post: IPost) => {
});
if (inReplyToUser !== null) {
- inReplyTo = inReplyToPost.uri || `${config.url}/@${inReplyToUser.username}/${inReplyToPost._id}`;
+ inReplyTo = inReplyToPost.uri || `${config.url}/posts/${inReplyToPost._id}`;
}
}
} else {
@@ -33,7 +33,7 @@ export default async (user: IUser, post: IPost) => {
const attributedTo = `${config.url}/@${user.username}`;
return {
- id: `${attributedTo}/${post._id}`,
+ id: `${config.url}/posts/${post._id}`,
type: 'Note',
attributedTo,
content: post.textHtml,