From 0826f237f40c8735424cf9b2b3e5c2f3463836a3 Mon Sep 17 00:00:00 2001 From: Ducky Date: Sat, 8 Jun 2024 19:31:00 +0100 Subject: [PATCH] Zio Elk: set spoiler expansion to true if API fails --- composables/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/users.ts b/composables/users.ts index 8c0b21bd..517ae6bf 100644 --- a/composables/users.ts +++ b/composables/users.ts @@ -176,7 +176,7 @@ const accountPreferencesMap = new Map>() * @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 } /**