Merge pull request #282 from Discours/fix/profile_articles

profile shouts fix 1
This commit is contained in:
Kosta 2023-10-25 17:11:57 +03:00 committed by GitHub
commit ea1de20466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ export const onBeforeRender = async (pageContext: PageContext) => {
const { slug } = pageContext.routeParams const { slug } = pageContext.routeParams
const authorShouts = await apiClient.getShouts({ const authorShouts = await apiClient.getShouts({
filters: { author: slug }, filters: { author: slug, visibility: 'community' },
limit: PRERENDERED_ARTICLES_COUNT limit: PRERENDERED_ARTICLES_COUNT
}) })
const author = await apiClient.getAuthor({ slug }) const author = await apiClient.getAuthor({ slug })