diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index dc33206da..9d9fdb5a6 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -174,6 +174,10 @@ export default { type: Object, default: () => {}, }, + showGroupPinned: { + type: Boolean, + default: false, + }, }, mounted() { const { image } = this.post @@ -205,10 +209,11 @@ export default { ) }, isPinned() { - return this.post && (this.post.pinned || this.post.groupPinned) + return this.post && (this.post.pinned || (this.showGroupPinned && this.post.groupPinned)) }, ribbonText() { - if (this.post.pinned || this.post.groupPinned) return this.$t('post.pinned') + if (this.post && (this.post.pinned || (this.showGroupPinned && this.post.groupPinned))) + return this.$t('post.pinned') if (this.post.postType[0] === 'Event') return this.$t('post.event') return this.$t('post.name') }, diff --git a/webapp/pages/groups/_id/_slug.vue b/webapp/pages/groups/_id/_slug.vue index ca13fc524..7973b2d73 100644 --- a/webapp/pages/groups/_id/_slug.vue +++ b/webapp/pages/groups/_id/_slug.vue @@ -243,6 +243,7 @@