]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix hashtag links always being lowercase
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 7 Aug 2019 08:01:19 +0000 (10:01 +0200)
committerThibaut Girka <thib@sitedethib.com>
Wed, 7 Aug 2019 13:35:44 +0000 (15:35 +0200)
Port 5e35aa82802b09a63d4625fa9c1837ad75178553 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/components/status_content.js

index f8b101dc4270789d5f5d5fbaeb827f62cc1691c5..95a4fe3fa09c7e036f3cefafbb95fddb617d3a9b 100644 (file)
@@ -172,7 +172,7 @@ export default class StatusContent extends React.PureComponent {
   }
 
   onHashtagClick = (hashtag, e) => {
-    hashtag = hashtag.replace(/^#/, '').toLowerCase();
+    hashtag = hashtag.replace(/^#/, '');
 
     if (this.props.parseClick) {
       this.props.parseClick(e, `/timelines/tag/${hashtag}`);