mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 03:51:26 +01:00
use hasReadTopic
This commit is contained in:
@@ -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}">
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user