Zio Elk: set spoiler expansion to true if API fails (attempt 2)
parent
ed2655fffc
commit
1eeee694a2
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue