Zio Elk: set spoiler expansion to true if API fails

zio/stable
Ducky 2024-06-08 19:31:00 +01:00
parent 59dfb09c21
commit 0826f237f4
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ const accountPreferencesMap = new Map<string, Partial<mastodon.v1.Preference>>()
* @returns `true` when user ticked the preference to always expand posts with content warnings
*/
export function getExpandSpoilersByDefault(account: mastodon.v1.AccountCredentials) {
return accountPreferencesMap.get(account.acct)?.['reading:expand:spoilers'] ?? false
return accountPreferencesMap.get(account.acct)?.['reading:expand:spoilers'] ?? true
}
/**