fix: #9790, fix sorting of more than one page of pinned topics

This commit is contained in:
Barış Soner Uşaklı
2021-09-11 17:57:42 -04:00
parent 3ecbb624d8
commit 2657804c1f
4 changed files with 31 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ module.exports = function (SocketTopics) {
};
SocketTopics.orderPinnedTopics = async function (socket, data) {
if (!Array.isArray(data)) {
if (!data || !data.tid) {
throw new Error('[[error:invalid-data]]');
}