mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 19:03:41 +00:00
Fix statuses without text disappearing on reload
This commit is contained in:
parent
366856f3bc
commit
32c17159d0
|
|
@ -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 {
|
return {
|
||||||
status: null,
|
status: null,
|
||||||
loadingState: 'loading',
|
loadingState: 'loading',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user