Skip to content

Node.js based forum software built for the modern web

closes #2752

barisusakli56d18666d60d
diff --git a/src/posts/delete.js b/src/posts/delete.js
index f3fab5bd87..bd130ade46 100644
--- a/src/posts/delete.js
+++ b/src/posts/delete.js
@@ -29,7 +29,7 @@ module.exports = function(Posts) {
removeFromCategoryRecentPosts(pid, postData.tid, next);
},
function(next) {
- Posts.dismissFlags(pid, next);
+ Posts.dismissFlag(pid, next);
}
], function(err) {
callback(err, postData);
@@ -127,7 +127,7 @@ module.exports = function(Posts) {
db.sortedSetsRemove(['posts:pid', 'posts:flagged'], pid, next);
},
function(next) {
- Posts.dismissFlags(pid, next);
+ Posts.dismissFlag(pid, next);
}
], function(err) {
if (err) {