mirror of
https://github.com/funamitech/mastodon
synced 2024-11-25 07:37:16 +09:00
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).
This commit is contained in:
parent
26a892dd90
commit
fa89deb4eb
@ -44,6 +44,7 @@ const StatusContent = React.createClass({
|
|||||||
} else {
|
} else {
|
||||||
link.setAttribute('target', '_blank');
|
link.setAttribute('target', '_blank');
|
||||||
link.setAttribute('rel', 'noopener');
|
link.setAttribute('rel', 'noopener');
|
||||||
|
link.setAttribute('title', link.href);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user