Skip to content

Node.js based forum software built for the modern web

fix: syntax error

Julian Lam6e1ecfbcd54e
diff --git a/src/api/posts.js b/src/api/posts.js
index 3ccb3e59c3..11fb37d630 100644
--- a/src/api/posts.js
+++ b/src/api/posts.js
@@ -197,7 +197,7 @@ async function deleteOrRestore(caller, data, params) {
setImmediate(() => {
// todo: need undo(delete)
if (params.command === 'delete') {
- activitypub.out.delete.note(caller.uid, data.pid),
+ activitypub.out.delete.note(caller.uid, data.pid);
}
});
if (isMain && isLast) {