Adding an invalid tag to a topic creates a whisper post

Reproduction steps:

  1. Turn on this setting
    The image shows instructions for creating a post or a whisper post when a topic's category or tags change, requiring whisper posts to be enabled. (Captioned by AI)
  2. Limit a category to only a specific set of tags
  3. Edit a subject of an existing topic in that category
  4. Create a new tag by entering a new tag name into the tag area
  5. Save the subject

Althought it seemed it was possible to add the tag, it won’t appear after saving (as it was not allowed). But when you look at the end of the topic, a whisper post was created that mentions the change of the tag.

Expected behavior: The whisper should not mention tags that were not created at all.

3 Likes

Interesting edge case, I wonder if we should put a pr-welcome on this @hugh ?

2 Likes

Not sure if it is technically related but I also found another whisper related issue before.

Yeah, I added pr-welcome to this. Thanks for reporting @tvavrda :slight_smile:

2 Likes

I’ve opened a PR on GitHub for this: FIX: Ensure tag diffs use persisted topic tags by TethysPlex · Pull Request #35187 · discourse/discourse · GitHub

1 Like