postType not in fragment

This commit is contained in:
Moriz Wahl 2023-04-25 15:09:36 +02:00
parent 97632a08fd
commit 65ad2a72ad
3 changed files with 4 additions and 2 deletions

View File

@ -155,7 +155,7 @@ export default {
ribbonText() { ribbonText() {
console.log(this.post) console.log(this.post)
if (this.post.pinned) return this.$t('post.pinned') 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') return this.$t('post.name')
}, },
}, },

View File

@ -67,7 +67,6 @@ export const postFragment = gql`
} }
pinnedAt pinnedAt
pinned pinned
postType
} }
` `

View File

@ -24,6 +24,7 @@ export default (i18n) => {
query Post($id: ID!) { query Post($id: ID!) {
Post(id: $id) { Post(id: $id) {
postType
...post ...post
...postCounts ...postCounts
...tagsCategoriesAndPinned ...tagsCategoriesAndPinned
@ -66,6 +67,7 @@ export const filterPosts = (i18n) => {
query Post($filter: _PostFilter, $first: Int, $offset: Int, $orderBy: [_PostOrdering]) { query Post($filter: _PostFilter, $first: Int, $offset: Int, $orderBy: [_PostOrdering]) {
Post(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { Post(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) {
postType
...post ...post
...postCounts ...postCounts
...tagsCategoriesAndPinned ...tagsCategoriesAndPinned
@ -103,6 +105,7 @@ export const profilePagePosts = (i18n) => {
$orderBy: [_PostOrdering] $orderBy: [_PostOrdering]
) { ) {
profilePagePosts(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { profilePagePosts(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) {
postType
...post ...post
...postCounts ...postCounts
...tagsCategoriesAndPinned ...tagsCategoriesAndPinned