Skip to content

feat(moderation): notify user by email on block - #1407

Open
mairasalazar wants to merge 1 commit into
zenodo:masterfrom
mairasalazar:inform-blocked-user
Open

feat(moderation): notify user by email on block#1407
mairasalazar wants to merge 1 commit into
zenodo:masterfrom
mairasalazar:inform-blocked-user

Conversation

@mairasalazar

Copy link
Copy Markdown
Contributor

Add on_block_notify callback that sends an email to users who have been blocked by the automated spam-detection. The body includes the user id and the message includes a reply-to Support. The callback is skipped for human-triggered blocks (actor_id set).

@mairasalazar
mairasalazar force-pushed the inform-blocked-user branch 2 times, most recently from eb88702 to e6079f8 Compare July 17, 2026 10:21
@mairasalazar
mairasalazar marked this pull request as ready for review July 17, 2026 10:40
@mairasalazar
mairasalazar requested a review from slint July 17, 2026 10:41

@OliverGeneser OliverGeneser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread site/zenodo_rdm/moderation/actions.py Outdated
Comment thread site/zenodo_rdm/moderation/actions.py Outdated
@mairasalazar
mairasalazar force-pushed the inform-blocked-user branch from e6079f8 to 65d4ca5 Compare July 20, 2026 09:04
Add on_block_notify callback that sends an email to users who have been
blocked by the automated spam-detection. The body includes the user
id and the message includes a reply-to Support. The callback is skipped
for human-triggered blocks (actor_id set).
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