Node.js based forum software built for the modern web
fix: restore original behavior for up/downvoting when logged out
psychobunnye50408b46157
diff --git a/public/src/client/topic/votes.js b/public/src/client/topic/votes.jsindex 076ff1ef5c..e2f15008a9 100644--- a/public/src/client/topic/votes.js+++ b/public/src/client/topic/votes.js@@ -63,7 +63,8 @@ define('forum/topic/votes', [delta: delta,}, function (err) {if (err) {- if (err.message === '[[error:not-logged-in]]') {+ // TODO: err.message is currently hardcoded in helpers/api.js+ if (err.message === 'A valid login session was not found. Please log in and try again.') {ajaxify.go('login');return;}