A user, tob1wan, encountered an issue where replying with [quote=author]text[/quote] results in an error stating that the reply is empty, while replying with [quote]text[/quote] works fine.
sam explained that the intention is to prevent responding with quotes alone, as it doesn’t add much to the conversation. Johani further clarified that when you quote a post in Discourse, the characters are not counted towards the post length, resulting in an empty post error.
tob1wan pointed out that they were not referring to quoting someone else on the forum but rather quoting external content and giving it a source. Johani explained that adding the = character makes it match internal Discourse quotes, which gets stripped, causing the issue.
A workaround is to use the > symbol to quote external content, or to look into adding custom functionality to the site. tob1wan suggested making it an option in the settings.
There are many many ways to work around post length restriction, we try to catch the trivial ones, but some more exotic methods of circumventing post length check sneak through.
just so I understand it correctly, the intention is that you should be able to respond with a quote or that you should not be able to respond with a quote?
A post that only contains a quote from another post and nothing else doesn’t add much to the conversation. Post quotes are stripped out when calculating the post length. So, the post length is effectively 0 if that’s all the post contains. That’s why you see that error. It’s been that way for a long time.
thank you for your reply and the additional information on the topic. However, I’m not talking about quoting someone else on the forum I’m just refering to the [quote] functionality.
Sometimes I read something on another site and just want to quickly quote from there and giving that quote a source (=author). E.g. something another person said.
So it is new content, but from someone/somewhere else. I get that a direct quote in the forum does not count as post length.
Nevertheless, just quoting works, but quoting with adding a “source” does not work anymore. This just seems weird to me.
The reason is still the same as I mentioned above. When you add the = character, it matches internal Discourse quotes. So, the assumption is that it’s a quote from another post, and it gets stripped.
You can do something like this if you want to add an external quote.
> me:
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do tempor incididunt ut labore et dolore manga
renders like so
me:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do tempor incididunt ut labore et dolore manga
Short of that, you’ll need to look into adding custom functionality to your site.
A change in how Discourse handles this in core is unlikely given that this hasn’t come up before. The benefit of stripping internal quotes far outways the use case of allowing posts that only contain an external quote where you manually add the source.