style changes

This commit is contained in:
Barış Soner Uşaklı
2017-06-22 19:03:49 -04:00
parent 78005d6124
commit 0f234601f1
20 changed files with 429 additions and 462 deletions

View File

@@ -150,6 +150,9 @@ topicsController.get = function (req, res, callback) {
if (req.uid) {
topicData.rssFeedUrl += '?uid=' + req.uid + '&token=' + rssToken;
}
addTags(topicData, req, res);
topicData.postIndex = req.params.post_index;
topicData.pagination = pagination.create(currentPage, pageCount, req.query);
topicData.pagination.rel.forEach(function (rel) {
@@ -163,8 +166,6 @@ topicsController.get = function (req, res, callback) {
req.session.tids_viewed[tid] = Date.now();
}
addTags(topicData, req, res);
if (req.uid) {
topics.markAsRead([tid], req.uid, function (err, markedRead) {
if (err) {