1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Add title attribute to URLs in statuses ()

Since URLs in statuses are truncated, it would be pleasant to see the
full URL when hovering the URL (like on twitter, yes).
This commit is contained in:
Luc Didry 2017-04-14 13:22:56 +02:00 committed by Eugen
parent 26a892dd90
commit fa89deb4eb

View file

@ -44,6 +44,7 @@ const StatusContent = React.createClass({
} else {
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener');
link.setAttribute('title', link.href);
}
}
},