# Discobot и копирование ссылки

**URL:** <https://meta.discourse.org/t/discobot-and-copy-pasting-a-link-step/168504>\
**Category:** Bug\
**Created:** [28.Октябрь.2020 10:06:56 UTC](https://meta.discourse.org/t/discobot-and-copy-pasting-a-link-step/168504 "2020-10-28T10:06:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [29.Октябрь.2020 13:29:33 UTC](https://meta.discourse.org/t/discobot-and-copy-pasting-a-link-step/168504/4 "2020-10-29T13:29:33Z")

</div>

> [@mentalstring](#):
>
> Возможно, ссылку можно разместить [в квадратных скобках](https://meta.discourse.org/t/url-parsing-on-posts/166851/4) (\<\>), чтобы избежать этого и предпросмотра?

Да, это то решение, которое я выбрал (после изучения возможности автоматического удаления обратных кавычек кода).

> <https://github.com/discourse/discourse/pull/11063>
>
> Due to the new enhanced copy-paste handling, the URL would be included in the us…er'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 :)
> 
> 
> 
> Note: this change will need to percolate to translations, but let's let that happen naturally.

---

_[View the full topic](https://meta.discourse.org/t/discobot-and-copy-pasting-a-link-step/168504)._
