]> cat aescling's git repositories - mastodon.git/commit
Change links in webUI to rewrite misleading links (#11426)
authorThibG <thib@sitedethib.com>
Tue, 30 Jul 2019 10:13:29 +0000 (12:13 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 30 Jul 2019 10:13:29 +0000 (12:13 +0200)
commitb31b232edfcc7f04acf828bf6829ab716b290692
tree030c02b6f0ab4cf2d76e87dfeaf41b815555b778
parent78144f4c7923d502cc86b322f044e740e4a8fa8a
Change links in webUI to rewrite misleading links (#11426)

* [WiP] Show host for “misleading” links

* Disallow misleading targets which domain names are prefixes of link text

* Move decodeIDNA to app/javascript/mastodon/utils

* Add support for international domain names

* Change link origin tag color to darker text color

* Handle links to domains starting with www. as shortened by Mastodon

* [WiP] Ignore links that cannot be misread as URLs, rewrite other links
app/javascript/mastodon/components/status_content.js
app/javascript/mastodon/features/status/components/card.js
app/javascript/mastodon/utils/idna.js [new file with mode: 0644]