mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
fixed #221 - issue where replies would not automatically refresh a post after editing
This commit is contained in:
@@ -56,7 +56,6 @@ var RDB = require('./redis.js'),
|
|||||||
}
|
}
|
||||||
|
|
||||||
PostTools.edit = function(uid, pid, title, content) {
|
PostTools.edit = function(uid, pid, title, content) {
|
||||||
|
|
||||||
var success = function() {
|
var success = function() {
|
||||||
posts.setPostField(pid, 'content', content);
|
posts.setPostField(pid, 'content', content);
|
||||||
posts.setPostField(pid, 'edited', Date.now());
|
posts.setPostField(pid, 'edited', Date.now());
|
||||||
@@ -74,9 +73,10 @@ var RDB = require('./redis.js'),
|
|||||||
topics.setTopicField(tid, 'title', title);
|
topics.setTopicField(tid, 'title', title);
|
||||||
topicSearch.remove(tid, function() {
|
topicSearch.remove(tid, function() {
|
||||||
topicSearch.index(title, tid);
|
topicSearch.index(title, tid);
|
||||||
next(null, tid);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
next(null, tid);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user