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() {
|
||||
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')
|
||||
},
|
||||
},
|
||||
|
||||
@ -67,7 +67,6 @@ export const postFragment = gql`
|
||||
}
|
||||
pinnedAt
|
||||
pinned
|
||||
postType
|
||||
}
|
||||
`
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user