mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: restore original behavior for up/downvoting when logged out
This commit is contained in:
@@ -63,7 +63,8 @@ define('forum/topic/votes', [
|
|||||||
delta: delta,
|
delta: delta,
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
if (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');
|
ajaxify.go('login');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user