Fixs #2987 - Prevent confirmed subscriber becoming unconfirmed when re-subscribing.#2996
Open
blu3id wants to merge 1 commit intoknadh:masterfrom
Open
Fixs #2987 - Prevent confirmed subscriber becoming unconfirmed when re-subscribing.#2996blu3id wants to merge 1 commit intoknadh:masterfrom
blu3id wants to merge 1 commit intoknadh:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
Issues Found
Minor (P3)
- [P3] Update comment to match confirmed-status override behavior (
queries/subscribers.sql:191-194)- The comment says
$11 (allow resubscribe)overrides existing statuses, but the newly movedconfirmedbranch now takes precedence even when$11 = TRUE, meaning confirmed subscriptions are not overridden; this mismatch can mislead future changes around subscription state transitions.
- The comment says
Summary
Total issues: 0 critical, 0 important, 1 minor.
Overall Verdict
Status: Patch is correct
Explanation: The reordered CASE branch correctly preserves an existing confirmed subscription when a user re-subscribes via the public form with allow resubscribe enabled, preventing an unintended downgrade to unconfirmed. No functional regressions are evident in the diff, aside from a now-misleading comment.
Review generated by Hodor (model: gpt-5.2)
Review Metrics — 8 turns, 7 tool calls, 57s
- Tokens: in
6.5K| cached37.4K| out2.6K(total46.5K) - Cost:
$0.0542
Author
|
Comment adjusted per review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This closes #2987 or at least fixes the fix of the regression identified in #2976
A confirmed double opt-in subscriber is no-longer unsubscribed if they re-subscribe to the list (while still subscribed and confirmed).
This doesn't address the discussion point of not leaking information about subscriber status as a confirmed subscriber on a double opt-in list will now get the message "Subscribed successfully." rather than "An e-mail has been sent to you to confirm your subscription(s)." to avoid leaking information about subscription status".
However this was how things have always been and would be a larger piece of work/ restructuring. A work around is adjusting the messages in the i18n language file to remove the difference between the messages.