mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
breaking: remove deprecated post diff socket calls
This commit is contained in:
@@ -22,7 +22,6 @@ require('./posts/move')(SocketPosts);
|
||||
require('./posts/votes')(SocketPosts);
|
||||
require('./posts/bookmarks')(SocketPosts);
|
||||
require('./posts/tools')(SocketPosts);
|
||||
require('./posts/diffs')(SocketPosts);
|
||||
|
||||
SocketPosts.reply = async function (socket, data) {
|
||||
sockets.warnDeprecated(socket, 'POST /api/v3/topics/:tid');
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const api = require('../../api');
|
||||
const websockets = require('..');
|
||||
|
||||
module.exports = function (SocketPosts) {
|
||||
SocketPosts.getDiffs = async function (socket, data) {
|
||||
websockets.warnDeprecated(socket, 'GET /api/v3/posts/:pid/diffs');
|
||||
return await api.posts.getDiffs(socket, data);
|
||||
};
|
||||
|
||||
SocketPosts.showPostAt = async function (socket, data) {
|
||||
websockets.warnDeprecated(socket, 'GET /api/v3/posts/:pid/diffs/:since');
|
||||
return await api.posts.loadDiff(socket, data);
|
||||
};
|
||||
|
||||
SocketPosts.restoreDiff = async function (socket, data) {
|
||||
websockets.warnDeprecated(socket, 'PUT /api/v3/posts/:pid/diffs/:since');
|
||||
return await api.posts.restoreDiff(socket, data);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user