mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
feat: allow search bar to load remote 7888 Conversations, aka nodebb topics
This commit is contained in:
@@ -173,6 +173,9 @@ async function fetchRemoteObject(data) {
|
|||||||
} else if (activitypub._constants.acceptableActorTypes.has(type)) {
|
} else if (activitypub._constants.acceptableActorTypes.has(type)) {
|
||||||
data.searchIn = 'users';
|
data.searchIn = 'users';
|
||||||
return await user.search(data);
|
return await user.search(data);
|
||||||
|
} else if (type === 'Conversation') {
|
||||||
|
({ tid } = await activitypub.notes.assert(uid, id));
|
||||||
|
id = await topics.getTopicField(tid, 'mainPid');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user