From efafc0045af8319cb5085399dd6aac9deee9e451 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 16 Oct 2018 14:41:54 +0200 Subject: [PATCH] showing who is following --- graphql/UserProfileQuery.js | 9 +++++++++ pages/profile/_slug.vue | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/graphql/UserProfileQuery.js b/graphql/UserProfileQuery.js index a490fe2de..a3d14a377 100644 --- a/graphql/UserProfileQuery.js +++ b/graphql/UserProfileQuery.js @@ -27,6 +27,15 @@ export default gql(` commentsCount } followedByCount + followedBy { + id + name + slug + avatar + followedByCount + contributionsCount + commentsCount + } contributionsCount contributions { Post { diff --git a/pages/profile/_slug.vue b/pages/profile/_slug.vue index 07182ec86..f51869396 100644 --- a/pages/profile/_slug.vue +++ b/pages/profile/_slug.vue @@ -42,7 +42,13 @@

Netzwerk

-

Folgt:

+ + + Wem folgt {{ user.name | truncate(15) }}? + + +
+ + + + + Wer folgt {{ user.name | truncate(15) }}? + + + +