"Have you tried the ❤ button?" text is irrelevant on topic

AI-generated summary

The discussion revolves around a UI issue in Discourse where the error message for short posts is incorrectly displayed as the same as reply messages when creating a topic with insufficient text. darkpixlz first reported the issue with screenshots, noting the message should be “Post must be at least 20 characters” instead of the reply error. maiki questioned reproducibility, but Moin confirmed it on try.discourse.com, identifying it as a bug affecting topics with very short content. The issue was linked to a specific code path and resolved in a recent commit, as confirmed by keegan.

When you make a topic and dont enter enough text, it shows the same text as replies.


vs

It’s the exact same thing, the topic one should use “Post must be at least 20 characters” instead.

2 Likes

Can you repro here on Meta? I see both those strings, but the like button does not show in the same context for me as your screenshots. :thinking:

1 Like

I do not, very weird. It’s a completely unchanged dev install, no settings, nothing.

I can reproduce at try.discourse.com

  1. Create a new account
  2. Dismiss the new notification user tip
  3. Click new topic
  4. Write a text shorter than 20 character
  5. Click create topic



I think it only triggers for tl0 or 1.

6 Likes

I think it was also mentioned here too - Error on too short OPs: "Have you tried the %{heart} button?"

6 Likes

Thanks for submitting this issue @darkpixlz. This should now be resolved as of 115a05f :tada:

4 Likes