smarter delete activity id

This commit is contained in:
Moon Man 2024-01-01 08:04:09 -05:00
parent 5e298ce255
commit 677e8c9b27
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ export const deleteArticleActivity = (article: Article, user: User) => {
const canonicalUrl = `https://${process.env.blog_host}/${article.slug}.html`; const canonicalUrl = `https://${process.env.blog_host}/${article.slug}.html`;
const activity: Record<string, any> = { const activity: Record<string, any> = {
id: fillRoute("activity", article.id + 1_000_000_000), id: fillRoute("activity", article.id) + "/delete",
"@context": CONTEXT, "@context": CONTEXT,
summary: `${user.nickname} deleted article ${canonicalUrl}`, summary: `${user.nickname} deleted article ${canonicalUrl}`,
type: "Delete", type: "Delete",