Zio Elk: set spoiler expansion to true if API fails
parent
59dfb09c21
commit
0826f237f4
|
@ -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
|
* @returns `true` when user ticked the preference to always expand posts with content warnings
|
||||||
*/
|
*/
|
||||||
export function getExpandSpoilersByDefault(account: mastodon.v1.AccountCredentials) {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue