mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
if a thread is unreplied, don't show the OP as the last person to reply
This commit is contained in:
@@ -62,6 +62,9 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="pull-right hidden-xs">
|
<span class="pull-right hidden-xs">
|
||||||
|
<!-- IF topics.unreplied -->
|
||||||
|
No one has replied
|
||||||
|
<!-- ELSE -->
|
||||||
<a href="/user/{topics.teaser_userslug}">
|
<a href="/user/{topics.teaser_userslug}">
|
||||||
<img class="teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
<img class="teaser-pic" src="{topics.teaser_userpicture}" title="{topics.teaser_username}"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -69,7 +72,7 @@
|
|||||||
replied
|
replied
|
||||||
</a>
|
</a>
|
||||||
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
<span class="timeago" title="{topics.teaser_timestamp}"></span>
|
||||||
|
<!-- ENDIF topics.unreplied -->
|
||||||
</span>
|
</span>
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -442,6 +442,7 @@ var RDB = require('./redis.js'),
|
|||||||
topicData['lock-icon'] = topicData.locked === '1' ? 'icon-lock' : 'none';
|
topicData['lock-icon'] = topicData.locked === '1' ? 'icon-lock' : 'none';
|
||||||
topicData['deleted-class'] = topicData.deleted === '1' ? 'deleted' : '';
|
topicData['deleted-class'] = topicData.deleted === '1' ? 'deleted' : '';
|
||||||
|
|
||||||
|
topicData.unreplied = topicData.postcount === '1';
|
||||||
topicData.username = topicInfo.username;
|
topicData.username = topicInfo.username;
|
||||||
topicData.userslug = topicInfo.userslug;
|
topicData.userslug = topicInfo.userslug;
|
||||||
topicData.picture = topicInfo.picture;
|
topicData.picture = topicInfo.picture;
|
||||||
@@ -524,6 +525,7 @@ var RDB = require('./redis.js'),
|
|||||||
'slug': topicData.slug,
|
'slug': topicData.slug,
|
||||||
'postcount': topicData.postcount,
|
'postcount': topicData.postcount,
|
||||||
'viewcount': topicData.viewcount,
|
'viewcount': topicData.viewcount,
|
||||||
|
'unreplied': topicData.postcount > 1,
|
||||||
'topic_id': tid,
|
'topic_id': tid,
|
||||||
'expose_tools': privileges.editable ? 1 : 0,
|
'expose_tools': privileges.editable ? 1 : 0,
|
||||||
'posts': topicPosts,
|
'posts': topicPosts,
|
||||||
|
|||||||
Reference in New Issue
Block a user