|
|
@ -22,7 +22,7 @@ popularController.get = async function (req, res, next) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const feedQs = data.rssFeedUrl.split('?')[1];
|
|
|
|
const feedQs = data.rssFeedUrl.split('?')[1];
|
|
|
|
data.rssFeedUrl = nconf.get('relative_path') + '/popular/' + (validator.escape(String(req.query.term)) || 'alltime') + '.rss';
|
|
|
|
data.rssFeedUrl = nconf.get('relative_path') + '/popular/' + validator.escape(String(req.query.term || 'alltime')) + '.rss';
|
|
|
|
if (req.loggedIn) {
|
|
|
|
if (req.loggedIn) {
|
|
|
|
data.rssFeedUrl += '?' + feedQs;
|
|
|
|
data.rssFeedUrl += '?' + feedQs;
|
|
|
|
}
|
|
|
|
}
|
|
|
|