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

This commit is contained in:
Ducky 2024-06-08 20:06:28 +01:00
parent ed2655fffc
commit 1eeee694a2

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
}
/**