Browse Source

Fix statuses without text disappearing on reload (#36962)

pull/1371/head
Claire 5 months ago committed by Misty De Meo
parent
commit
dbdbfaae5a
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 6
      app/javascript/mastodon/selectors/index.js

6
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',

Loading…
Cancel
Save