breaking: remove setTopicSort/setCategorySort

This commit is contained in:
Barış Soner Uşaklı
2021-11-23 18:45:30 -05:00
parent 7aa85882d5
commit 6dcdf1d342
2 changed files with 66 additions and 18 deletions

View File

@@ -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;