mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
feat: update Remove(Context) to use target instead of origin, federate out Move(Context) on topic move between local cids
This commit is contained in:
@@ -86,14 +86,12 @@ inbox.remove = async (req) => {
|
||||
if (!isContext) {
|
||||
return; // don't know how to handle other types
|
||||
}
|
||||
console.log('isContext?', isContext);
|
||||
|
||||
const mainPid = await activitypub.contexts.getItems(0, object.id, { returnRootId: true });
|
||||
const exists = await posts.exists(mainPid);
|
||||
if (!exists) {
|
||||
return; // post not cached; do nothing.
|
||||
}
|
||||
console.log('mainPid is', mainPid);
|
||||
|
||||
// Ensure that cid is same-origin as the actor
|
||||
const tid = await posts.getPostField(mainPid, 'tid');
|
||||
|
||||
Reference in New Issue
Block a user