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