mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
postType not in fragment
This commit is contained in:
parent
97632a08fd
commit
65ad2a72ad
@ -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')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -67,7 +67,6 @@ export const postFragment = gql`
|
|||||||
}
|
}
|
||||||
pinnedAt
|
pinnedAt
|
||||||
pinned
|
pinned
|
||||||
postType
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user