Skip to content

Refuse a post that mentions a deactivated account - #244

Merged
GraemeF merged 2 commits into
mainfrom
worktree-comms-yyqa.2
Sep 29, 2026
Merged

GraemeF merged 2 commits into
mainfrom
worktree-comms-yyqa.2

Conversation

@GraemeF

@GraemeF GraemeF commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Zulip still resolves a deactivated account's name in @**Name** markup, but it renders the mention silent, so the mention notifies nobody. commy's write-path check resolved names against every member of /users, deactivated ones included. A post naming a deactivated seat therefore went out silently instead of failing with UnresolvedMention.

The check now counts only active members, in both the @**Name** and @**Name|id** forms. The read path is unchanged, because it reads the rendered span and Zulip already marks that span silent.

This PR does not stop a live seat's bot from being deactivated. commy's ephemeral idle sweep does that, and a separate change removes the sweep. After this PR, the author of such a post gets an error instead of silence.

Zulip still resolves a deactivated account's name in @**Name** markup,
but renders the mention silent, so it notifies nobody. The write-path
check resolved names against every member of /users, deactivated ones
included, so a post naming a released ephemeral seat went out silently
instead of failing with UnresolvedMention.

The check now counts only active members, in both the @**Name** and
@**Name|id** forms. The read path is unchanged: it already reads the
rendered span, which Zulip marks silent.
@GraemeF
GraemeF marked this pull request as ready for review September 29, 2026 11:46
@GraemeF
GraemeF enabled auto-merge (squash) September 29, 2026 11:46
@GraemeF
GraemeF merged commit 66f7a5c into main Sep 29, 2026
2 checks passed
@GraemeF
GraemeF deleted the worktree-comms-yyqa.2 branch September 29, 2026 11:47
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.

1 participant