From a3755e06f0bfa1e86ab319ae3c602165fb5557f6 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 24 Feb 2018 16:00:45 +1030 Subject: [PATCH] Only show sticky excerpt on unread discussions --- extensions/sticky/js/forum/src/addStickyExcerpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/sticky/js/forum/src/addStickyExcerpt.js b/extensions/sticky/js/forum/src/addStickyExcerpt.js index a830914fb..1302a0618 100644 --- a/extensions/sticky/js/forum/src/addStickyExcerpt.js +++ b/extensions/sticky/js/forum/src/addStickyExcerpt.js @@ -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) {