Zio Elk: set spoiler expansion to true if API fails (attempt 2)

zio/stable
Ducky 2024-06-08 20:06:28 +01:00
parent ed2655fffc
commit 1eeee694a2
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ 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'] ?? true
//return accountPreferencesMap.get(account.acct)?.['reading:expand:spoilers'] ?? false
return true
}
/**