Skip to content

Node.js based forum software built for the modern web

parseInt cid

Barış Soner Uşaklı3431589b24ab
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js
index 3a042aa2e9..67dd64e1e1 100644
--- a/src/activitypub/notes.js
+++ b/src/activitypub/notes.js
@@ -759,7 +759,7 @@ Notes.prune = async () => {
async function pruneCidTids(cid, cuttoff) {
- if (utils.isNumber(cid) && cid !== -1) {
+ if (utils.isNumber(cid) && parseInt(cid, 10) !== -1) {
// safety incase a local cid is in handle:cid
return;
}