mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
feat: handle receipt of Add activity #12707
This commit is contained in:
@@ -388,7 +388,7 @@ activitypubApi.add = enabledCheck((async (_, { pid }) => {
|
||||
|
||||
const tid = await posts.getPostField(localId || pid, 'tid');
|
||||
const cid = await posts.getCidByPid(localId || pid);
|
||||
if (cid <= 0) {
|
||||
if (!utils.isNumber(tid) || cid <= 0) { // `Add` only federated on categorized topics started locally
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user