|
|
@ -48,6 +48,10 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function (infinit
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ajaxify.data.template.category && parseInt(ajaxify.data.cid, 10) !== parseInt(data.cid, 10)) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
newTopicCount += 1;
|
|
|
|
newTopicCount += 1;
|
|
|
|
Recent.updateAlertText();
|
|
|
|
Recent.updateAlertText();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -74,6 +78,10 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function (infinit
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ajaxify.data.template.category && parseInt(ajaxify.data.cid, 10) !== parseInt(post.topic.cid, 10)) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ajaxify.data.selectedFilter && ajaxify.data.selectedFilter.filter === 'watched') {
|
|
|
|
if (ajaxify.data.selectedFilter && ajaxify.data.selectedFilter.filter === 'watched') {
|
|
|
|
socket.emit('topics.isFollowed', post.tid, function (err, isFollowed) {
|
|
|
|
socket.emit('topics.isFollowed', post.tid, function (err, isFollowed) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|