Implement like
This commit is contained in:
parent
321f61f1cb
commit
c5f23bce78
7 changed files with 131 additions and 137 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue