Skip to content

A free, self-hostable news aggregator…

Alow mix of auto read options (#2354)

Alexandre Alapetiteaef3f8d71bea
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 215d4117b..d85a3ae15 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -163,7 +163,7 @@ function incUnreadsTag(tag_id, nb) {
}
function removeArticle(div) {
- if (!div || div.classList.contains('active') || div.classList.contains('not_read')) {
+ if (!div || div.classList.contains('not_read') || (context.auto_mark_article && div.classList.contains('active'))) {
return;
}
let scrollTop = box_to_follow.scrollTop;