]> cat aescling's git repositories - mastodon.git/commit
Count all URLs in text as 23 characters flat, do not count domain part of usernames...
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 28 Jul 2017 22:06:29 +0000 (00:06 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2017 22:06:29 +0000 (00:06 +0200)
commit53b2b1b2389c0ea941c50d4a9c726539d808c384
tree2afc8cc342a62aa66f4ab52b82a7f8fdf182cd67
parent634b71ed1d551ee569e5ff5b858ea7eb07c824bd
Count all URLs in text as 23 characters flat, do not count domain part of usernames (#4427)

* Count all URLs in text as 23 characters flat, do not count domain part of usernames

* Add new status text counting logic to web UI
app/javascript/mastodon/features/compose/components/character_counter.js
app/javascript/mastodon/features/compose/components/compose_form.js
app/javascript/mastodon/features/compose/util/counter.js [new file with mode: 0644]
app/models/account.rb
app/validators/status_length_validator.rb
spec/models/status_spec.rb
spec/validators/status_length_validator_spec.rb [new file with mode: 0644]