Skip to content

A free, self-hostable news aggregator…

Add article auto-remove after clicking on the read link

Alexis Degrugillieradaec6176ca0
diff --git a/p/scripts/main.js b/p/scripts/main.js
index d1d31c801..19eba206d 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -690,6 +690,9 @@ function init_stream(divStream) {
divStream.on('click', '.flux a.read', function () {
var active = $(this).parents(".flux");
mark_read(active, false);
+ if (context['auto_remove_article']) {
+ active.remove();
+ }
return false;
});