Skip to content

Node.js based forum software built for the modern web

closes #458

Baris Soner Usakli82e14eef3588
diff --git a/src/postTools.js b/src/postTools.js
index b84b5a2b9f..4876d9c5b0 100644
--- a/src/postTools.js
+++ b/src/postTools.js
@@ -38,7 +38,7 @@ var RDB = require('./redis.js'),
function isOwnPost(next) {
posts.getPostField(pid, 'uid', function(author) {
if (author && parseInt(author) > 0) {
- next(null, author === uid);
+ next(null, parseInt(author, 10) === parseInt(uid, 10));
}
});
}