logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: fa89deb4eb0fc3bc6a28fb78e212829f20336001
parent: 26a892dd90166cac5dd27ebe94c6d2f6acc68b9c
Author: Luc Didry <ldidry@users.noreply.github.com>
Date:   Fri, 14 Apr 2017 13:22:56 +0200

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:

Mapp/assets/javascripts/components/components/status_content.jsx1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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); } } },