mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:20:43 +08:00
8b24e0f0b7
Due to the new enhanced copy-paste handling, the URL would be included in the user's reply as code, too! By surrounding the link in angle brackets, we prevent the bot from accidentally including the link itself and spoiling the surprise. I considered having the bot automatically edit the user's post to remove the backticks. I very quickly ran into a problem with spurious whitespace, and it would also look _super weird_ for the bot to edit your post when that's not what's being taught. The seemingly bare link not automatically embedding is also weird, but slightly less so. Fun fact: this doesn't work on localhost, because the onebox engine refuses to issue requests to localhost :) |
||
---|---|---|
.. | ||
discourse-details | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
lazy-yt | ||
poll | ||
styleguide |