From 27d33d1233b6b46aee03ef92d531973dbeced57a Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 20 Nov 2025 10:52:53 +0100 Subject: [PATCH] [Glitch] Fix statuses without text disappearing on reload Port 05c624cfa71931ce977bd73fc8c03c5a492265be to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/selectors/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/selectors/index.js b/app/javascript/flavours/glitch/selectors/index.js index be95b79569..6cd7846639 100644 --- a/app/javascript/flavours/glitch/selectors/index.js +++ b/app/javascript/flavours/glitch/selectors/index.js @@ -32,7 +32,11 @@ function getStatusResultFunction( }; } - if (statusBase.get('isLoading') && !statusBase.get('content')) { + // When a status is loading, a `isLoading` property is set + // A status can be loading because it is not known yet (in which case it will only contain `isLoading`) + // or because it is being re-fetched; in the latter case, `visibility` will always be set to a non-empty + // string. + if (statusBase.get('isLoading') && !statusBase.get('visibility')) { return { status: null, loadingState: 'loading',