Merge branch 'hotfix/author-follows' into dev

This commit is contained in:
Untone 2024-02-23 10:41:41 +03:00
commit 7c0759945b
4 changed files with 22 additions and 6 deletions

View File

@ -15,8 +15,8 @@ export default gql`
last_seen last_seen
stat { stat {
shouts shouts
authors
followers followers
followings
rating rating
commented commented
} }

View File

@ -3,17 +3,33 @@ import { gql } from '@urql/core'
export default gql` export default gql`
query GetAuthorFollows($slug: String, $user: String, $author_id: Int) { query GetAuthorFollows($slug: String, $user: String, $author_id: Int) {
get_author_follows(slug: $slug, user: $user, author_id: $author_id) { get_author_follows(slug: $slug, user: $user, author_id: $author_id) {
authors { authors {
id id
slug slug
name name
pic pic
bio bio
stat {
shouts
authors
followers
}
} }
topics { topics {
id id
slug slug
title title
stat {
shouts
authors
followers
}
}
communities {
id
slug
name
pic
} }
} }
} }

View File

@ -14,10 +14,10 @@ export default gql`
last_seen last_seen
stat { stat {
shouts shouts
comments: commented authors
followers followers
followings
rating rating
comments: commented
rating_shouts rating_shouts
rating_comments rating_comments
} }

View File

@ -11,10 +11,10 @@ export default gql`
created_at created_at
stat { stat {
shouts shouts
comments: commented authors
followers followers
followings
rating rating
comments: commented
rating_shouts rating_shouts
rating_comments rating_comments
} }