Browse Source

Fix media modal link button (#18877)

Fixes regression from #18697
closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
ba745ca99a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions
  1. +3
    -11
      app/javascript/mastodon/components/icon_button.js

+ 3
- 11
app/javascript/mastodon/components/icon_button.js View File

@ -131,17 +131,9 @@ export default class IconButton extends React.PureComponent {
</React.Fragment>
);
if (href) {
return (
<a
href={href}
aria-label={title}
title={title}
target='_blank'
rel='noopener noreferrer'
className={classes}
style={style}
>
if (href && !this.prop) {
contents = (
<a href={href} target='_blank' rel='noopener noreferrer'>
{contents}
</a>
);

Loading…
Cancel
Save