about summary refs log tree commit diff
path: root/app/assets
diff options
context:
space:
mode:
authorLuc Didry <ldidry@users.noreply.github.com>2017-04-14 13:22:56 +0200
committerEugen <eugen@zeonfederated.com>2017-04-14 13:22:56 +0200
commitfa89deb4eb0fc3bc6a28fb78e212829f20336001 (patch)
tree02b2ceb7247cec1ee15c5f9bffb2d6db1e528829 /app/assets
parent26a892dd90166cac5dd27ebe94c6d2f6acc68b9c (diff)
Add title attribute to URLs in statuses (#1755)
Since URLs in statuses are truncated, it would be pleasant to see the
full URL when hovering the URL (like on twitter, yes).
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/components/components/status_content.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx
index c7eefcaf5..33e407e43 100644
--- a/app/assets/javascripts/components/components/status_content.jsx
+++ b/app/assets/javascripts/components/components/status_content.jsx
@@ -44,6 +44,7 @@ const StatusContent = React.createClass({
       } else {
         link.setAttribute('target', '_blank');
         link.setAttribute('rel', 'noopener');
+        link.setAttribute('title', link.href);
       }
     }
   },