mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Only show sticky excerpt on unread discussions
This commit is contained in:
parent
d3baf624d1
commit
a3755e06f0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user