Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Oct 27, 2023
1 parent b14ee65 commit 6d15995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/api/activitypub/note/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const GET: APIRoute = async ({ params }) => {
type: 'Note',
attributedTo: 'https://blog.yunyi.beiyan.us/api/activitypub/actor',
cc: ['https://blog.yunyi.beiyan.us/api/activitypub/followers'],
content: `<p>发布了新的博文:<a href="https://blog.yunyi.beiyan.us${post.url}">${
content: `<p><a rel= href="https://blog.yunyi.beiyan.us${post.url}">${
post.frontmatter.title
}</a><br>${post.frontmatter.description || ''}</p>`,
}</a></p><p>${post.frontmatter.description || ''}</p>`,
published: new Date(post.frontmatter.date).toISOString(),
to: ['https://www.w3.org/ns/activitystreams#Public'],
url: `https://blog.yunyi.beiyan.us${post.url}`,
Expand Down

0 comments on commit 6d15995

Please sign in to comment.