From b35ecd08eac79b5f40ceb7a79c2922648ee2059c Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli <barisusakli@gmail.com> Date: Sat, 27 Jul 2013 13:59:14 -0400 Subject: [PATCH] use hasReadTopic --- public/templates/recent.tpl | 1 + src/topics.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/templates/recent.tpl b/public/templates/recent.tpl index 11efe8861a..b838f0f33f 100644 --- a/public/templates/recent.tpl +++ b/public/templates/recent.tpl @@ -15,6 +15,7 @@ <strong>There are no recent topics.</strong> </div> +<button class="btn">Mark All Read</button><br/><br/> <div class="category row"> <div class="{topic_row_size}"> diff --git a/src/topics.js b/src/topics.js index 37b2ae709d..289d8a7b56 100644 --- a/src/topics.js +++ b/src/topics.js @@ -162,7 +162,7 @@ marked.setOptions({ function getReadStatus(next) { if (uid && parseInt(uid) > 0) { - RDB.sismember(schema.topics(tid).read_by_uid, uid, function(err, read) { + Topics.hasReadTopic(tid, uid, function(read) { next(null, read); }); } else {