A free, self-hostable news aggregator…
Do not mark as read in anonymous mode
Alexandre Alapetite9e698108febe
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtmlindex 745baa195..059224305 100644--- a/app/views/helpers/javascript_vars.phtml+++ b/app/views/helpers/javascript_vars.phtml@@ -3,6 +3,7 @@ $mark = FreshRSS_Context::$user_conf->mark_when;$s = FreshRSS_Context::$user_conf->shortcuts;echo htmlspecialchars(json_encode(array('context' => array(+ 'anonymous' => !FreshRSS_Auth::hasAccess(),'auto_remove_article' => !!FreshRSS_Context::isAutoRemoveAvailable(),'hide_posts' => !(FreshRSS_Context::$user_conf->display_posts || Minz_Request::actionName() === 'reader'),'display_order' => Minz_Request::param('order', FreshRSS_Context::$user_conf->sort_order),diff --git a/p/scripts/main.js b/p/scripts/main.jsindex d464b0863..5dbb95c91 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -117,6 +117,7 @@ function incUnreadsFeed(article, feed_id, nb) {var pending_entries = {};function mark_read(active, only_not_read) {if ((active.length === 0) || (!active.attr('id')) ||+ context.anonymous ||(only_not_read && !active.hasClass("not_read"))) {return false;}