From: Thibaut Girka Date: Wed, 24 Jul 2019 19:14:37 +0000 (+0200) Subject: Fix links in status media having their title rewritten X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=91da921dbb51f55bc926c3997ae558d735292a67;p=mastodon.git Fix links in status media having their title rewritten --- diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index 650b834de..befbe340f 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -26,7 +26,7 @@ export default class StatusContent extends React.PureComponent { }; _updateStatusLinks () { - const node = this.node; + const node = this.contentsNode; if (!node) { return; @@ -161,6 +161,10 @@ export default class StatusContent extends React.PureComponent { this.node = c; } + setContentsRef = (c) => { + this.contentsNode = c; + } + render () { const { status, @@ -241,6 +245,7 @@ export default class StatusContent extends React.PureComponent {
-
+
{media}
);