diff --git a/src/components/Views/Author/Author.tsx b/src/components/Views/Author/Author.tsx
index 0ea039f3..cd479d8f 100644
--- a/src/components/Views/Author/Author.tsx
+++ b/src/components/Views/Author/Author.tsx
@@ -36,6 +36,7 @@ export const AuthorView = (props: Props) => {
const { page } = useRouter()
const author = createMemo(() => authorEntities()[props.authorSlug])
+ console.log('!!! author:', author())
const [isLoadMoreButtonVisible, setIsLoadMoreButtonVisible] = createSignal(false)
const [isBioExpanded, setIsBioExpanded] = createSignal(false)
const [followers, setFollowers] = createSignal
([])
@@ -139,11 +140,13 @@ export const AuthorView = (props: Props) => {
-
- {t('Publications')}
+
+ {t('Publications')} ({author().stat.shouts})
+
-
- {t('Comments')}
+ {t('Comments')} ({author().stat.commented})
-
diff --git a/src/graphql/query/author-by-slug.ts b/src/graphql/query/author-by-slug.ts
index b6537e9d..9a673200 100644
--- a/src/graphql/query/author-by-slug.ts
+++ b/src/graphql/query/author-by-slug.ts
@@ -9,14 +9,17 @@ export default gql`
bio
about
userpic
- communities
+ # communities
links
createdAt
lastSeen
- # ratings {
- # rater
- # value
- # }
+ stat {
+ shouts
+ followers
+ followings
+ rating
+ commented
+ }
}
}
`
diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts
index 86e32fb3..293826d2 100644
--- a/src/graphql/types.gen.ts
+++ b/src/graphql/types.gen.ts
@@ -318,7 +318,7 @@ export type ProfileInput = {
export type Query = {
authorsAll: Array>
- getAuthor?: Maybe
+ getAuthor?: Maybe
getTopic?: Maybe
isEmailUsed: Scalars['Boolean']
loadAuthorsBy: Array>