From 95932656af129d1dc2b9405fa69e781a30be8c2e Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Fri, 14 Apr 2017 13:22:56 +0200 Subject: [PATCH] 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). --- app/assets/javascripts/components/components/status_content.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index c7eefcaf50..33e407e431 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); } } },