Skip to content

The unsername field in the author is not displayed #347

@qin121212

Description

@qin121212

Using Public API - REST query only displays the author's ID field, other fields are not displayed. My "@ trapi/strapi": "5.17.0",

my query:

Image

config:
export default ({ env }) => ({
comments: {
enabled: true,
config: {
badWords: true,
moderatorRoles: ['Authenticated'],
approvalFlow: ['api::article.article'],
entryLabel: {
'*': ['Title', 'title', 'Name', 'name', 'Subject', 'subject'],
'api::article.article': ['title'],
},
blockedAuthorProps: [],
reportReasons: {
SPAM: 'SPAM',
INAPPROPRIATE: 'INAPPROPRIATE',
HARASSMENT: 'HARASSMENT',
},
},
},
});

Image

What's wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions