Skip to content

Node.js based forum software built for the modern web

fix: ensure consistent return type from notes.assert

Oplikoa7aeabc80d03
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js
index d808f3abac..5a70c9cf3a 100644
--- a/src/activitypub/notes.js
+++ b/src/activitypub/notes.js
@@ -56,7 +56,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
// All cached, return early.
winston.verbose('[notes/assert] No new notes to process.');
unlock(id);
- return tid;
+ return { tid, count: 0 };
}
let cid;