+
+
+
+
+ {{ comments.length }} Comments
+
+
+
+
+
+
+
+
diff --git a/webapp/graphql/PostCommentsQuery.js b/webapp/graphql/PostCommentsQuery.js
new file mode 100644
index 000000000..2c37f2933
--- /dev/null
+++ b/webapp/graphql/PostCommentsQuery.js
@@ -0,0 +1,40 @@
+import gql from 'graphql-tag'
+
+export default app => {
+ const lang = app.$i18n.locale().toUpperCase()
+ return gql(`
+ query Post($slug: String!) {
+ Post(slug: $slug) {
+ commentsCount
+ comments(orderBy: createdAt_asc) {
+ id
+ contentExcerpt
+ createdAt
+ disabled
+ deleted
+ author {
+ id
+ slug
+ name
+ avatar
+ disabled
+ deleted
+ shoutedCount
+ contributionsCount
+ commentsCount
+ followedByCount
+ followedByCurrentUser
+ location {
+ name: name${lang}
+ }
+ badges {
+ id
+ key
+ icon
+ }
+ }
+ }
+ }
+ }
+ `)
+}
diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue
index 7ae683425..692dbe69e 100644
--- a/webapp/pages/post/_id/_slug/index.vue
+++ b/webapp/pages/post/_id/_slug/index.vue
@@ -96,39 +96,9 @@