mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
closes #458
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user