From 7687da00d16ebb71849035b1e9efeb5b85d16f36 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 23 Jan 2025 15:12:54 -0500 Subject: [PATCH] feat: allow search bar to load remote 7888 Conversations, aka nodebb topics --- src/search.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/search.js b/src/search.js index 5e9b3c8e47..1609bea31f 100644 --- a/src/search.js +++ b/src/search.js @@ -173,6 +173,9 @@ async function fetchRemoteObject(data) { } else if (activitypub._constants.acceptableActorTypes.has(type)) { data.searchIn = 'users'; return await user.search(data); + } else if (type === 'Conversation') { + ({ tid } = await activitypub.notes.assert(uid, id)); + id = await topics.getTopicField(tid, 'mainPid'); } }