mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
breaking: remove setTopicSort/setCategorySort
This commit is contained in:
@@ -136,24 +136,6 @@ SocketUser.saveSettings = async function (socket, data) {
|
||||
return settings;
|
||||
};
|
||||
|
||||
SocketUser.setTopicSort = async function (socket, sort) {
|
||||
sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/settings');
|
||||
await api.users.updateSetting(socket, {
|
||||
uid: socket.uid,
|
||||
setting: 'topicPostSort',
|
||||
value: sort,
|
||||
});
|
||||
};
|
||||
|
||||
SocketUser.setCategorySort = async function (socket, sort) {
|
||||
sockets.warnDeprecated(socket, 'PUT /api/v3/users/:uid/settings');
|
||||
await api.users.updateSetting(socket, {
|
||||
uid: socket.uid,
|
||||
setting: 'categoryTopicSort',
|
||||
value: sort,
|
||||
});
|
||||
};
|
||||
|
||||
SocketUser.getUnreadCount = async function (socket) {
|
||||
if (!socket.uid) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user