mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixes #1587
This commit is contained in:
@@ -292,6 +292,9 @@ var ajaxify = ajaxify || {};
|
|||||||
if (this.host === window.location.host) {
|
if (this.host === window.location.host) {
|
||||||
// Internal link
|
// Internal link
|
||||||
var url = this.href.replace(rootUrl + '/', '');
|
var url = this.href.replace(rootUrl + '/', '');
|
||||||
|
url = url + (url.match(/\?/) ? '&' : '?') + 'prefetched=true';
|
||||||
|
console.log(url);
|
||||||
|
|
||||||
ajaxify.loadData(url, function(err, data) {
|
ajaxify.loadData(url, function(err, data) {
|
||||||
ajaxify.preloader = {
|
ajaxify.preloader = {
|
||||||
url: url,
|
url: url,
|
||||||
|
|||||||
@@ -163,15 +163,17 @@ topicsController.get = function(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (uid) {
|
if (!req.query.prefetched) {
|
||||||
topics.markAsRead(tid, uid, function(err) {
|
topics.increaseViewCount(tid);
|
||||||
topics.pushUnreadCount(uid);
|
|
||||||
topics.markTopicNotificationsRead(tid, uid);
|
if (uid) {
|
||||||
});
|
topics.markAsRead(tid, uid, function(err) {
|
||||||
|
topics.pushUnreadCount(uid);
|
||||||
|
topics.markTopicNotificationsRead(tid, uid);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
topics.increaseViewCount(tid);
|
|
||||||
|
|
||||||
// Paginator for noscript
|
// Paginator for noscript
|
||||||
data.pages = [];
|
data.pages = [];
|
||||||
for(var x=1; x<=data.pageCount; x++) {
|
for(var x=1; x<=data.pageCount; x++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user