Skip to content

Node.js based forum software built for the modern web

fix: unset crosspostCid if the post does not already have a cid

Julian Lam4e91175a1282
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js
index 2ed3479f0a..c9cf640376 100644
--- a/src/activitypub/notes.js
+++ b/src/activitypub/notes.js
@@ -198,6 +198,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false, queue: false })
crosspostCid = cid;
if (!options.cid) {
options.cid = crosspostCid;
+ crosspostCid = false;
}
// filter is used below to decide whether to queue or add the crosspost