Ocelot-Social/webapp/graphql/CommentQuery.js
Ulf Gebhardt 30560bff69
fix(webapp): fix user avatar & post image urls (#8921)
Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
2025-09-25 22:19:27 +02:00

40 lines
749 B
JavaScript

import gql from 'graphql-tag'
import { imageUrls } from './fragments/imageUrls'
export default (app) => {
const lang = app.$i18n.locale().toUpperCase()
return gql`
${imageUrls}
query Comment($postId: ID) {
Comment(postId: $postId) {
id
contentExcerpt
createdAt
author {
id
slug
name
avatar {
...imageUrls
}
disabled
deleted
shoutedCount
contributionsCount
commentedCount
followedByCount
followedByCurrentUser
location {
name: name${lang}
}
badges {
id
icon
}
}
}
}
`
}