Compare commits
2 Commits
ed2655fffc
...
26c16ff0d5
Author | SHA1 | Date |
---|---|---|
|
26c16ff0d5 | |
|
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
|
* @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'] ?? true
|
//return accountPreferencesMap.get(account.acct)?.['reading:expand:spoilers'] ?? false
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@elk-zone/elk",
|
"name": "@elk-zone/elk",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.14.0",
|
"version": "0.14.0-zio",
|
||||||
"packageManager": "pnpm@8.15.5",
|
"packageManager": "pnpm@8.15.5",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://elk.zone/",
|
"homepage": "https://elk.zone/",
|
||||||
|
|
Loading…
Reference in New Issue