Skip to content

Node.js based forum software built for the modern web

oops

Baris Usakli04bc0cd2c944
diff --git a/src/postTools.js b/src/postTools.js
index 736613cc35..9981948bfa 100644
--- a/src/postTools.js
+++ b/src/postTools.js
@@ -87,7 +87,7 @@ marked.setOptions({
posts.getPostFields(pid, ['tid', 'uid'], function(postData) {
- user.decrementUserFieldBypostData.uid, 'postcount', 1);
+ user.decrementUserFieldBy(postData.uid, 'postcount', 1);
io.sockets.in('topic_' + postData.tid).emit('event:post_deleted', {
pid: pid