From 82e14eef3588bbaaa45d09b6814e118777449d51 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 27 Oct 2013 23:29:53 -0400 Subject: [PATCH] closes #458 --- src/postTools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }); }