Moving whisper posts to a new topic creates a broken topic

AI-generated summary

A bug was reported by Stefan_Fairphone where moving only whispered posts to a new topic results in an empty, broken topic with no title or content — and even a negative post count. Moderators also can’t unwhisper posts in such topics. dax confirmed the issue is reproducible, noting it likely hadn’t been tested before since no one had tried creating a topic with only whispers. sam suggested the system should disallow moving whispers to new topics entirely, permitting moves only to existing ones. The bug was later fixed by zogstrip, with a commit reference provided. The issue highlights an edge case in Discourse’s whisper handling logic, now resolved to prevent future occurrences.

Hey, I just created an empty topic without anything (no posts visible to normal users). Here are the steps to reproduce:

  1. Whisper something.
  2. Select the whispered posts (exclusively those) and move them to a new topic
  3. End up with an empty topic without title, post nor anything else:

https://forum.fairphone.com/t/is-it-a-or-an-fp1-fp2-how-to-write-indefinite-articles-before-the-fairphone-abbreviation/37260

Here is a screenshot from a private Firefox window:

I’m sorry if someone has reported this before, a quick search did not lead me to anything.

PS.: The problem is that I can’t unwhisper the posts in that topic, even if I’m logged in as moderator.

Edit: Oh and this happened too (post count at -1):

grafik

I think I broke Discourse… :joy:

10 Likes

Reproducible and confirmed bug.

Good catch @Stefan_Fairphone, I think no one has ever tried to create a topic with just whispers.

9 Likes

I don’t think we even support a whisper OP. so we should just ban people from moving whisper to new topic. Only allow people to move to existing.

5 Likes

It’s now fixed :hamburger:
https://github.com/discourse/discourse/commit/5c1eaeca9e783aec07191958f0781ad9e57c0f22

9 Likes

This topic was automatically closed after 24 hours. New replies are no longer allowed.