mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
closes #458
This commit is contained in:
@@ -38,7 +38,7 @@ var RDB = require('./redis.js'),
|
|||||||
function isOwnPost(next) {
|
function isOwnPost(next) {
|
||||||
posts.getPostField(pid, 'uid', function(author) {
|
posts.getPostField(pid, 'uid', function(author) {
|
||||||
if (author && parseInt(author) > 0) {
|
if (author && parseInt(author) > 0) {
|
||||||
next(null, author === uid);
|
next(null, parseInt(author, 10) === parseInt(uid, 10));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user