Skip to content

Node.js based forum software built for the modern web

fixed again fail

Baris Soner Usaklia4fd972b2bd1
diff --git a/src/topics.js b/src/topics.js
index 8d947365b4..b4a2098821 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -887,9 +887,9 @@ var async = require('async'),
topicData['pin-icon'] = parseInt(topicData.pinned, 10) === 1 ? 'fa-thumb-tack' : 'none';
topicData['lock-icon'] = parseInt(topicData.locked, 10) === 1 ? 'fa-lock' : 'none';
- topicData['unread-class'] = !(hasread && parseInt(current_user, 10) !== 0) ? 'unread' : '';
+ topicData['unread-class'] = !(hasRead && parseInt(current_user, 10) !== 0) ? 'unread' : '';
- topicData.unread = !(hasread && parseInt(current_user, 10) !== 0);
+ topicData.unread = !(hasRead && parseInt(current_user, 10) !== 0);
topicData.teaser_username = teaser.username || '';
topicData.teaser_userslug = teaser.userslug || '';
topicData.userslug = teaser.userslug || '';