diff --git a/app/assets/javascripts/discourse/components/topic-list-item.js.es6 b/app/assets/javascripts/discourse/components/topic-list-item.js.es6 index 943a7b662..2f5026e10 100644 --- a/app/assets/javascripts/discourse/components/topic-list-item.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-list-item.js.es6 @@ -55,6 +55,16 @@ export default Ember.Component.extend(StringBuffer, { return false; } + if (this.site.mobileView) { + if (!this.siteSettings.show_pinned_excerpt_mobile) { + return false; + } + } else { + if (!this.siteSettings.show_pinned_excerpt_desktop) { + return false; + } + } + if (this.get('expandGloballyPinned') && this.get('topic.pinned_globally')) { return true; } diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs index df2e91044..6d61e9c4e 100644 --- a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.hbs @@ -17,7 +17,10 @@ showPosters=true currentUser=currentUser hideCategory=model.hideCategory - topics=model.topics}} + topics=model.topics + expandGloballyPinned=expandGloballyPinned + expandAllPinned=expandAllPinned + }} {{/if}} {{/discovery-topics-list}} diff --git a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs index 1047de967..e630889d4 100644 --- a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs +++ b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.raw.hbs @@ -1,5 +1,5 @@