fixed js error in recent.js, remove content assignment

This commit is contained in:
Baris Usakli
2013-11-27 12:39:07 -05:00
parent 3a8dca6fb9
commit 7d7ead3f47
2 changed files with 2 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ define(function() {
loadingMoreTopics = false;
Unread.init = function() {
app.enter_room('recent_posts');
app.enterRoom('recent_posts');
ajaxify.register_events([
'event:new_topic',

View File

@@ -43,14 +43,12 @@ var RDB = require('./redis.js'),
return callback(err, null);
}
content = newContent;
var timestamp = Date.now(),
postData = {
'pid': pid,
'uid': uid,
'tid': tid,
'content': content,
'content': newContent,
'timestamp': timestamp,
'reputation': 0,
'editor': '',