Skip to content

[3.0] Only says the emails will stop when they will - #9747

Merged
jdarwood007 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/reply-notify-once-wording
Oct 4, 2026
Merged

jdarwood007 merged 1 commit into
SimpleMachines:release-3.0from
albertlast:3.0/reply-notify-once-wording

Conversation

@albertlast

Copy link
Copy Markdown
Collaborator

Description

Members choose how often they are emailed about topics they watch (msg_notify_pref): every reply (1), the first unread reply only (2), or a daily or weekly digest. The _once variants of the reply notification (notification_reply_once, notification_reply_body_once) are meant for 2. They end with:

More replies may be posted, but you will not receive any more notifications for this topic until you visit it.

CreatePost_Notify chose the _once variant with if (!empty($frequency)), which is true for "every reply" too. So members who asked to be emailed about every reply were told the emails would stop, and then kept receiving them. The board branch a few lines below already checks $frequency == 2. The reply branch now compares against FREQUENCY_FIRST_UNREAD_MSG the same way.

This has been the case since 2.1.

Testing

tests/Integration/Http/ReplyNotificationTest.php runs a reply notification through cron.php for a member watching a topic by email, with the mail queue held:

  • Every reply (1): the email must not contain the "until you visit it" sentence. Fails without the fix.
  • First unread (2): the email must contain it. Already true, and still true.

Checked on MySQL and PostgreSQL.

Issues References (Fixes|Related|Closes)

🤖 Generated with Claude Code

A reply notification ends with "More replies may be posted, but you
will not receive any more notifications for this topic until you visit
it" when the member asked to be emailed once until they visit. The
wording was chosen for any frequency other than "never", so members
emailed about every reply were told the emails would stop, and then
kept getting them. Board notifications already checked for the right
frequency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
@jdarwood007 jdarwood007 added this to the 3.0 Alpha 5 milestone Oct 4, 2026
@jdarwood007
jdarwood007 merged commit 4594679 into SimpleMachines:release-3.0 Oct 4, 2026
11 checks passed
jdarwood007 pushed a commit that referenced this pull request Oct 31, 2026
The _once reply templates tell the member no more emails will come until
they visit the topic. They were chosen for any non-empty frequency, so
members who asked for every reply were told that too. Only the first
unread reply setting gets them now, as the board branch already does.

Backport of #9747.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
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