mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix: #9790, fix sorting of more than one page of pinned topics
This commit is contained in:
@@ -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]]');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user