Skip to content

Feat Req: implement blockedAuthorProps #12

@fontanon

Description

@fontanon

Hi. I'd like to request to include blockedAuthorProps under config/plugins.js. Very the same feature offered on strapi-plugin-comments: https://github.com/VirtusLab-Open-Source/strapi-plugin-comments#properties

The reason is I'd like to remove "email" from response as this is private info. I hope this make sense.

curl --location 'http://localhost:1337/api/reactions/list/api::entry.entry/28'

[
    {
        "id": 1,
        "createdAt": "2023-10-31T12:39:20.733Z",
        "updatedAt": "2023-10-31T12:39:20.733Z",
        "kind": {
            "id": 1,
            "slug": "like",
            "name": "like"
        },
        "user": {
            "id": 1,
            "username": "fontanon",
            "email": "my@email.com" <--------------- remove this
        }
    },
    {
        "id": 2,
        "createdAt": "2023-10-31T12:45:41.496Z",
        "updatedAt": "2023-10-31T12:45:41.496Z",
        "kind": {
            "id": 1,
            "slug": "like",
            "name": "like"
        },
        "user": {
            "id": 2,
            "username": "johndoe",
            "email": "another@email.com" <---------------- remove this
        }
    }
]

Metadata

Metadata

Assignees

Labels

backlogDevelopers backlogenhancementNew feature or requestin progressImplementation in progress

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions