Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

[WIP] Add creation date to shouts and follows #236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 38 additions & 28 deletions graphql/UserProfileQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,41 +24,51 @@ export default app => {
commentsCount
followingCount
following(first: 7) {
id
name
slug
avatar
followedByCount
followedByCurrentUser
contributionsCount
commentsCount
badges {
id
key
icon
createdAt: {
formatted
}
location {
name: name${lang}
User {
id
name
slug
avatar
followedByCount
followedByCurrentUser
contributionsCount
commentsCount
badges {
id
key
icon
}
location {
name: name${lang}
}
}
}
followedByCount
followedByCurrentUser
followedBy(first: 7) {
id
name
slug
avatar
followedByCount
followedByCurrentUser
contributionsCount
commentsCount
badges {
id
key
icon
createdAt: {
formatted
}
location {
name: name${lang}
User {
id
name
slug
avatar
followedByCount
followedByCurrentUser
contributionsCount
commentsCount
badges {
id
key
icon
}
location {
name: name${lang}
}
}
}
contributionsCount
Expand Down
8 changes: 4 additions & 4 deletions pages/profile/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@
<template v-if="user.following && user.following.length">
<ds-space
v-for="follow in uniq(user.following)"
:key="follow.id"
:key="follow.User.id"
margin="x-small"
>
<!-- TODO: find better solution for rendering errors -->
<no-ssr>
<hc-related-user
:post="follow"
:post="follow.User"
:trunc="15"
/>
</no-ssr>
Expand Down Expand Up @@ -174,13 +174,13 @@
<template v-if="user.followedBy && user.followedBy.length">
<ds-space
v-for="follow in uniq(user.followedBy)"
:key="follow.id"
:key="follow.User.id"
margin="x-small"
>
<!-- TODO: find better solution for rendering errors -->
<no-ssr>
<hc-related-user
:post="follow"
:post="follow.User"
:trunc="15"
/>
</no-ssr>
Expand Down