mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
feat: use reading:autoplay:gifs
user setting
This commit is contained in:
parent
706cffe209
commit
ffedb02e07
1 changed files with 8 additions and 0 deletions
|
@ -187,6 +187,14 @@ export function getExpandMediaByDefault(account: mastodon.v1.AccountCredentials)
|
||||||
return accountPreferencesMap.get(account.acct)?.['reading:expand:media'] === 'show_all'
|
return accountPreferencesMap.get(account.acct)?.['reading:expand:media'] === 'show_all'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param account
|
||||||
|
* @returns `true` when user selected "Auto-play animated GIFs" preference
|
||||||
|
*/
|
||||||
|
export function getAutoplayGifsByDefault(account: mastodon.v1.AccountCredentials) {
|
||||||
|
return accountPreferencesMap.get(account.acct)?.['reading:autoplay:gifs'] ?? false
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param account
|
* @param account
|
||||||
* @returns `true` when user selected "Always hide media" as Media Display preference
|
* @returns `true` when user selected "Always hide media" as Media Display preference
|
||||||
|
|
Loading…
Reference in a new issue