This commit is contained in:
Julian Lam
2013-08-23 14:55:25 -04:00
parent 4d11fba20a
commit 9bc12f28b4
6 changed files with 15 additions and 15 deletions

View File

@@ -33,8 +33,7 @@ marked.setOptions({
Topics.getTopicDataWithUsername = function(tid, callback) {
Topics.getTopicData(tid, function(topic) {
user.getUserField(topic.uid, 'username', function(username) {
user.getUserField(topic.uid, 'username', function(err, username) {
topic.username = username;
callback(topic);
});
@@ -572,8 +571,8 @@ marked.setOptions({
return;
}
user.getUserField(uid, 'lastposttime', function(lastposttime) {
user.getUserField(uid, 'lastposttime', function(err, lastposttime) {
if (err) lastposttime = 0;
if(Date.now() - lastposttime < meta.config.postDelay) {
callback(new Error('too-many-posts'), null);
return;