feat: use reading:autoplay:gifs
user setting
This commit is contained in:
parent
706cffe209
commit
ffedb02e07
@ -187,6 +187,14 @@ export function getExpandMediaByDefault(account: mastodon.v1.AccountCredentials)
|
||||
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
|
||||
* @returns `true` when user selected "Always hide media" as Media Display preference
|
||||
|
Loading…
Reference in New Issue
Block a user