@baris said:
Right you would need to add a Topics.updateRecent(tid, timestamp, callback); call into Topics.create() function so that topics are initialy added to /recent.
Change the following code in Topics.create()
https://github.com/NodeBB/NodeBB/blob/master/src/topics/create.js#L64-L68
to
db.sortedSetsAdd([
'topics:tid',
'topics:recent',
'cid:' + topicData.cid + ':tids',
'cid:' + topicData.cid + ':uid:' + topicData.uid + ':tids'
], timestamp, topicData.tid, next);
lol, everything was working when I replaced:
'topics:tid',
'topics:recent',
on
'topics:recent',
'topics:tid',
Thank you.