mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-09 08:25:55 +00:00
dc350be6f5
* 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
19 lines
782 B
JavaScript
19 lines
782 B
JavaScript
export const preferencesLink = '/settings/preferences';
|
|
export const profileLink = '/settings/profile';
|
|
export const signOutLink = '/auth/sign_out';
|
|
export const termsLink = '/terms';
|
|
export const accountAdminLink = (id) => `/admin/accounts/${id}`;
|
|
export const statusAdminLink = (account_id, status_id) => `/admin/accounts/${account_id}/statuses?id=${status_id}`;
|
|
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;
|
|
}
|
|
};
|