smarter delete activity id
This commit is contained in:
parent
5e298ce255
commit
677e8c9b27
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue