]> cat aescling's git repositories - mastodon.git/commit
Improve RTL detection (#3682)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Jun 2017 13:06:50 +0000 (15:06 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2017 13:06:50 +0000 (15:06 +0200)
commit8015fd76003419bd3ccca585ffe4416312800fe0
treef1995858c87e85827e2ef3267aa61d3f2bed6f8b
parent4919b89ab83f8eee43b89ff4786eae46bf2fa30e
Improve RTL detection (#3682)

- Use plaintext
- Strip out URLs
- Strip out mentions
- Strip out hashtags
- Strip out whitespace from "overall" count
- Consistent between JS and Ruby
app/helpers/stream_entries_helper.rb
app/javascript/mastodon/components/status_content.js
app/javascript/mastodon/rtl.js
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/_simple_status.html.haml