From 91da921dbb51f55bc926c3997ae558d735292a67 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 24 Jul 2019 21:14:37 +0200 Subject: Fix links in status media having their title rewritten --- app/javascript/flavours/glitch/components/status_content.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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}
); -- cgit From a4a81c5434c73139f7c1d66f2687039237c5208a Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 29 Jul 2019 00:28:13 +0200 Subject: Fix crash in /web/lists Fixes #1181 --- app/javascript/flavours/glitch/features/lists/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/flavours/glitch/features/lists/index.js b/app/javascript/flavours/glitch/features/lists/index.js index bf1b410bb..ad5240bd5 100644 --- a/app/javascript/flavours/glitch/features/lists/index.js +++ b/app/javascript/flavours/glitch/features/lists/index.js @@ -57,6 +57,8 @@ export default class Lists extends ImmutablePureComponent { ); } + const emptyMessage = ; + return ( -- cgit