Browse Source

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).
master
Luc Didry 7 years ago
committed by Eugen
parent
commit
fa89deb4eb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/assets/javascripts/components/components/status_content.jsx

+ 1
- 0
app/assets/javascripts/components/components/status_content.jsx View File

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

Loading…
Cancel
Save