]> cat aescling's git repositories - mastodon.git/commit
Update twitter-text from 1.14 to 3.1.0 and fix toot character counting (#15382)
authorClaire <claire.github-309c@sitedethib.com>
Tue, 2 Mar 2021 11:02:56 +0000 (12:02 +0100)
committerGitHub <noreply@github.com>
Tue, 2 Mar 2021 11:02:56 +0000 (12:02 +0100)
commit65db2625508c220fd3c0a1f37cdd2e13b6e02987
tree47b7ffdb601a3eed8870699f74212706450d04e9
parenta8139ab0160096d09d83e8d3f9c7849129be1aa8
Update twitter-text from 1.14 to 3.1.0 and fix toot character counting (#15382)

* Update twitter-text from 1.14 to 3.1.0

* Disable emoji parsing

* Properly depend on twitter-text for url detection

* Fix some URLs being wrongly detected client-side

* Add test for server-side validation of non-autolinkable URLs

* Fix server-side status length counting
13 files changed:
Gemfile
Gemfile.lock
app/javascript/mastodon/features/compose/util/counter.js
app/javascript/mastodon/features/compose/util/url_regex.js
app/lib/extractor.rb
app/lib/formatter.rb
app/services/fetch_link_card_service.rb
app/validators/status_length_validator.rb
config/initializers/twitter_regex.rb
package.json
spec/lib/formatter_spec.rb
spec/validators/status_length_validator_spec.rb
yarn.lock