Use upstream's settings for CW auto-expand and column swiping (#1770)
* Use Mastodon server-side settings for automatically expanding toots with CWs * Add modal warning about settings changes * Use Mastodon server-side settings for disabling swiping
This commit is contained in:
parent
aa08399e6f
commit
dc350be6f5
20 changed files with 396 additions and 24 deletions
|
@ -7,3 +7,12 @@ export const statusAdminLink = (account_id, status_id) => `/admin/accounts/${acc
|
|||
export const filterEditLink = (id) => `/filters/${id}/edit`;
|
||||
export const relationshipsLink = '/relationships';
|
||||
export const securityLink = '/auth/edit';
|
||||
export const preferenceLink = (setting_name) => {
|
||||
switch (setting_name) {
|
||||
case 'user_setting_expand_spoilers':
|
||||
case 'user_setting_disable_swiping':
|
||||
return `/settings/preferences/appearance#${setting_name}`;
|
||||
default:
|
||||
return preferencesLink;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue