From 05c624cfa71931ce977bd73fc8c03c5a492265be Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 20 Nov 2025 10:52:53 +0100 Subject: [PATCH] Fix statuses without text disappearing on reload (#36962) --- app/javascript/mastodon/selectors/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/selectors/index.js b/app/javascript/mastodon/selectors/index.js index 157c2f4a5a..471c7af411 100644 --- a/app/javascript/mastodon/selectors/index.js +++ b/app/javascript/mastodon/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',