mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixed delete
This commit is contained in:
@@ -100,7 +100,7 @@ marked.setOptions({
|
||||
|
||||
PostTools.restore = function(uid, pid) {
|
||||
var success = function() {
|
||||
RDB.del('pid:' + pid + ':deleted');
|
||||
posts.setPostField(pid, 'deleted', 0);
|
||||
|
||||
posts.getPostField(pid, 'tid', function(tid) {
|
||||
io.sockets.in('topic_' + tid).emit('event:post_restored', {
|
||||
|
||||
Reference in New Issue
Block a user