tweaks to topic locking

v1.18.x
Julian Lam 11 years ago
parent 08d130893c
commit abdb4c34ef

@ -56,12 +56,14 @@ var RDB = require('./redis.js'),
status: 'ok'
});
if (socket) {
socket.emit('api:topic.lock', {
status: 'ok',
tid: tid
});
}
}
}
ThreadTools.unlock = function(tid, socket) {
topics.setTopicField(tid, 'locked', 0);
@ -72,12 +74,14 @@ var RDB = require('./redis.js'),
status: 'ok'
});
if (socket) {
socket.emit('api:topic.unlock', {
status: 'ok',
tid: tid
});
}
}
}
ThreadTools.delete = function(tid, callback) {
topics.delete(tid);
@ -129,12 +133,14 @@ var RDB = require('./redis.js'),
status: 'ok'
});
if (socket) {
socket.emit('api:topic.pin', {
status: 'ok',
tid: tid
});
}
}
}
ThreadTools.unpin = function(tid, socket) {
topics.setTopicField(tid, 'pinned', 0);
@ -147,12 +153,14 @@ var RDB = require('./redis.js'),
status: 'ok'
});
if (socket) {
socket.emit('api:topic.unpin', {
status: 'ok',
tid: tid
});
}
}
}
ThreadTools.move = function(tid, cid, socket) {

Loading…
Cancel
Save