Skip to content

feat(moderation): allow passing data and actor_id to block action#199

Merged
slint merged 1 commit intoinveniosoftware:masterfrom
slint:block-action-payload
Apr 21, 2026
Merged

feat(moderation): allow passing data and actor_id to block action#199
slint merged 1 commit intoinveniosoftware:masterfrom
slint:block-action-payload

Conversation

@slint
Copy link
Copy Markdown
Member

@slint slint commented Apr 16, 2026

  • Allows passing a data free-form dict to the block action. This gets
    propagated down to the block action callbacks as expanded kwargs.
  • Also passes the user ID from the identity performing the block service
    call as actor_id.

Comment thread invenio_users_resources/services/users/tasks.py Outdated
Comment thread invenio_users_resources/services/users/tasks.py
Comment thread invenio_users_resources/resources/users/resource.py
* Allows passing a `data` free-form dict to the block action. This gets
  propagated down to the block action callbacks as expanded kwargs.
* Also passes the user ID from the identity performing the block service
  call as `actor_id`.
@slint slint force-pushed the block-action-payload branch from e313c18 to 7fec450 Compare April 21, 2026 12:57
@slint slint merged commit 6225d44 into inveniosoftware:master Apr 21, 2026
3 checks passed
@slint slint deleted the block-action-payload branch April 21, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants