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
stat {
shouts
authors
followers
followings
rating
commented
}

View File

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

View File

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

View File

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