refactor: use search api for topic search

This commit is contained in:
Barış Soner Uşaklı
2021-10-25 23:12:34 -04:00
parent 6cfaea06f0
commit 64192731a0
5 changed files with 27 additions and 123 deletions

View File

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