This commit is contained in:
Barış Soner Uşaklı
2017-06-13 20:15:48 -04:00
parent 8ea5c060f5
commit b13ed26587
3 changed files with 6 additions and 21 deletions

View File

@@ -262,6 +262,7 @@ topicsController.get = function (req, res, callback) {
data.postDeleteDuration = parseInt(meta.config.postDeleteDuration, 10) || 0;
data.scrollToMyPost = settings.scrollToMyPost;
data.rssFeedUrl = nconf.get('relative_path') + '/topic/' + data.tid + '.rss';
data.postIndex = req.params.post_index;
data.pagination = pagination.create(currentPage, pageCount, req.query);
data.pagination.rel.forEach(function (rel) {
rel.href = nconf.get('url') + '/topic/' + data.slug + rel.href;