mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fixed js error in recent.js, remove content assignment
This commit is contained in:
@@ -3,7 +3,7 @@ define(function() {
|
|||||||
loadingMoreTopics = false;
|
loadingMoreTopics = false;
|
||||||
|
|
||||||
Unread.init = function() {
|
Unread.init = function() {
|
||||||
app.enter_room('recent_posts');
|
app.enterRoom('recent_posts');
|
||||||
|
|
||||||
ajaxify.register_events([
|
ajaxify.register_events([
|
||||||
'event:new_topic',
|
'event:new_topic',
|
||||||
|
|||||||
@@ -43,14 +43,12 @@ var RDB = require('./redis.js'),
|
|||||||
return callback(err, null);
|
return callback(err, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
content = newContent;
|
|
||||||
|
|
||||||
var timestamp = Date.now(),
|
var timestamp = Date.now(),
|
||||||
postData = {
|
postData = {
|
||||||
'pid': pid,
|
'pid': pid,
|
||||||
'uid': uid,
|
'uid': uid,
|
||||||
'tid': tid,
|
'tid': tid,
|
||||||
'content': content,
|
'content': newContent,
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
'reputation': 0,
|
'reputation': 0,
|
||||||
'editor': '',
|
'editor': '',
|
||||||
|
|||||||
Reference in New Issue
Block a user