v1.18.x
psychobunny 11 years ago
parent 1fecbd0b90
commit fee591e551

@ -292,6 +292,9 @@ var ajaxify = ajaxify || {};
if (this.host === window.location.host) {
// Internal link
var url = this.href.replace(rootUrl + '/', '');
url = url + (url.match(/\?/) ? '&' : '?') + 'prefetched=true';
console.log(url);
ajaxify.loadData(url, function(err, data) {
ajaxify.preloader = {
url: url,

@ -163,14 +163,16 @@ topicsController.get = function(req, res, next) {
}
if (uid) {
topics.markAsRead(tid, uid, function(err) {
topics.pushUnreadCount(uid);
topics.markTopicNotificationsRead(tid, uid);
});
}
if (!req.query.prefetched) {
topics.increaseViewCount(tid);
topics.increaseViewCount(tid);
if (uid) {
topics.markAsRead(tid, uid, function(err) {
topics.pushUnreadCount(uid);
topics.markTopicNotificationsRead(tid, uid);
});
}
}
// Paginator for noscript
data.pages = [];

Loading…
Cancel
Save