From 65ad2a72adb765b6e387847fac92d26292b85df9 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 25 Apr 2023 15:09:36 +0200 Subject: [PATCH] postType not in fragment --- webapp/components/PostTeaser/PostTeaser.vue | 2 +- webapp/graphql/Fragments.js | 1 - webapp/graphql/PostQuery.js | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index d9aa3dbc1..d4cedcdb8 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -155,7 +155,7 @@ export default { ribbonText() { console.log(this.post) if (this.post.pinned) return this.$t('post.pinned') - // if (this.post.postType === "Event") return this.$t('post.event') + // if (this.post.postType === "Event") return this.$t('post.event') return this.$t('post.name') }, }, diff --git a/webapp/graphql/Fragments.js b/webapp/graphql/Fragments.js index cdba3e342..4931750b6 100644 --- a/webapp/graphql/Fragments.js +++ b/webapp/graphql/Fragments.js @@ -67,7 +67,6 @@ export const postFragment = gql` } pinnedAt pinned - postType } ` diff --git a/webapp/graphql/PostQuery.js b/webapp/graphql/PostQuery.js index 1c6c76276..c52cfa475 100644 --- a/webapp/graphql/PostQuery.js +++ b/webapp/graphql/PostQuery.js @@ -24,6 +24,7 @@ export default (i18n) => { query Post($id: ID!) { Post(id: $id) { + postType ...post ...postCounts ...tagsCategoriesAndPinned @@ -66,6 +67,7 @@ export const filterPosts = (i18n) => { query Post($filter: _PostFilter, $first: Int, $offset: Int, $orderBy: [_PostOrdering]) { Post(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { + postType ...post ...postCounts ...tagsCategoriesAndPinned @@ -103,6 +105,7 @@ export const profilePagePosts = (i18n) => { $orderBy: [_PostOrdering] ) { profilePagePosts(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { + postType ...post ...postCounts ...tagsCategoriesAndPinned