]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix media modal link button
authorClaire <claire.github-309c@sitedethib.com>
Thu, 25 Aug 2022 02:30:53 +0000 (04:30 +0200)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:28:01 +0000 (00:28 -0400)
Port ba745ca99a4ce4b953e11776827aabb68d621e79 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/components/icon_button.js

index be2468d688ed96dcb46499ddaefb8b12636e5236..9ff745355fc5258d6c6be49fd5d3eb7f5d6fd3ab 100644 (file)
@@ -139,17 +139,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>
       );