Compare commits

...

2 Commits

Author SHA1 Message Date
barisusakli
e7ecd0f1eb 0.5.6 2014-12-01 15:38:32 -05:00
barisusakli
f95777f474 if a post is purged, remove it from flagged posts as well 2014-12-01 15:38:07 -05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "nodebb",
"license": "GPLv3 or later",
"description": "NodeBB Forum",
"version": "0.5.5",
"version": "0.5.6",
"homepage": "http://www.nodebb.org",
"repository": {
"type": "git",

View File

@@ -116,7 +116,7 @@ module.exports = function(Posts) {
deletePostFromUsersVotes(pid, next);
},
function(next) {
db.sortedSetRemove('posts:pid', pid, next);
db.sortedSetsRemove(['posts:pid', 'posts:flagged'], pid, next);
},
], function(err) {
if (err) {