fix: add back reverse lookup for notes assertion checking via cids

This commit is contained in:
Julian Lam
2024-04-15 16:28:57 -04:00
parent 59a9dd8436
commit 407dda78e1

View File

@@ -283,6 +283,7 @@ inbox.accept = async (req) => {
await Promise.all([ await Promise.all([
db.sortedSetRemove(`followRequests:cid.${id}`, actor), db.sortedSetRemove(`followRequests:cid.${id}`, actor),
db.sortedSetAdd(`cid:${id}:following`, now, actor), db.sortedSetAdd(`cid:${id}:following`, now, actor),
db.sortedSetAdd(`followersRemote:${actor}`, now, `cid|${id}`), // for notes assertion checking
]); ]);
} }
} }