AP: Fix post ID
This commit is contained in:
parent
320ba3fc67
commit
e4b3a5f68d
|
@ -29,7 +29,11 @@ function postObject(post: Page): object {
|
|||
"https://www.w3.org/ns/activitystreams"
|
||||
],
|
||||
"type": "Article",
|
||||
"id": `https://${baseURL}${postMeta.permalink}.json`,
|
||||
"id": `https://${baseURL}${path.format({
|
||||
dir: path.dirname(post.metadata.permalink),
|
||||
name: path.basename(post.metadata.permalink),
|
||||
ext: ".json"
|
||||
})}`,
|
||||
"published": (<Date>postMeta.date).toISOString(),
|
||||
"inReplyTo": null,
|
||||
"url": `https://${baseURL}${postMeta.permalink}`,
|
||||
|
|
Loading…
Reference in New Issue