Skip to content

AO3-7576 Fix comment emails for news posts posted from preview - #5982

Open
marcus8448 wants to merge 2 commits into
otwcode:masterfrom
marcus8448:AO3-7576
Open

AO3-7576 Fix comment emails for news posts posted from preview#5982
marcus8448 wants to merge 2 commits into
otwcode:masterfrom
marcus8448:AO3-7576

Conversation

@marcus8448

Copy link
Copy Markdown
Member

Issue

https://otwarchive.atlassian.net/browse/AO3-7576

Purpose

Fixes comment notifications to the news post email not getting sent when the news post was posted from preview.

Changes the admin_id of an admin post in a model callback instead of the hidden field in the form.

Credit

marcus8448 (he/him)

@github-actions github-actions Bot added Scope: Tests Only Only changes automated tests or test configuration Awaiting Review labels Aug 16, 2026
@marcus8448 marcus8448 removed the Scope: Tests Only Only changes automated tests or test configuration label Aug 16, 2026
@sarken

sarken commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

The code looks good at a glance, but I'm not sure it goes far enough. It looks like it still allows for admin posts to be created without an admin_id, which seems like it would still prevent the emails from being sent.

Should we also either make posts invalid without an admin_id or make sure emails get sent even if no admin_id is set?

Or if that's not the case, can we have a test showing the emails are sent even if no admin_id is set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants