diff --git a/src/posts.js b/src/posts.js index d21b2aea8e..756a59797d 100644 --- a/src/posts.js +++ b/src/posts.js @@ -198,7 +198,7 @@ var RDB = require('./redis.js'), } user.getUserField(uid, 'lastposttime', function(lastposttime) { - if(Date.now() - lastposttime < config.postDelay)) { + if(Date.now() - lastposttime < config.postDelay) { callback(new Error('too-many-posts'), null); return; }