Only show sticky excerpt on unread discussions

This commit is contained in:
Toby Zerner 2018-02-24 16:00:45 +10:30
parent d3baf624d1
commit a3755e06f0

View File

@ -11,7 +11,7 @@ export default function addStickyControl() {
extend(DiscussionListItem.prototype, 'infoItems', function(items) {
const discussion = this.props.discussion;
if (discussion.isSticky() && !this.props.params.q) {
if (discussion.isSticky() && !this.props.params.q && !discussion.readNumber()) {
const startPost = discussion.startPost();
if (startPost) {