mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
refactor: use search api for topic search
This commit is contained in:
@@ -83,6 +83,7 @@ SocketTopics.isFollowed = async function (socket, tid) {
|
||||
};
|
||||
|
||||
SocketTopics.search = async function (socket, data) {
|
||||
sockets.warnDeprecated(socket, 'GET /api/search');
|
||||
if (!data) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user