feat: allow search bar to load remote 7888 Conversations, aka nodebb topics

This commit is contained in:
Julian Lam
2025-01-23 15:12:54 -05:00
parent ff0de09797
commit 7687da00d1

View File

@@ -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');
} }
} }