Change to new convention for acct
This commit is contained in:
parent
9309ef4893
commit
89785fa84c
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ export function toggleStatusSensitivityModal(intl, statusId, sensitive, afterCon
|
|||
const acct = state.getIn(['accounts', accountId, 'acct']);
|
||||
|
||||
dispatch(openModal('CONFIRM', {
|
||||
message: intl.formatMessage(sensitive === false ? messages.markStatusSensitivePrompt : messages.markStatusNotSensitivePrompt, { acct: `@${acct}` }),
|
||||
message: intl.formatMessage(sensitive === false ? messages.markStatusSensitivePrompt : messages.markStatusNotSensitivePrompt, { acct }),
|
||||
confirm: intl.formatMessage(sensitive === false ? messages.markStatusSensitiveConfirm : messages.markStatusNotSensitiveConfirm),
|
||||
onConfirm: () => {
|
||||
dispatch(toggleStatusSensitivity(statusId, sensitive)).then(() => {
|
||||
const message = intl.formatMessage(sensitive === false ? messages.statusMarkedSensitive : messages.statusMarkedNotSensitive, { acct: `@${acct}` });
|
||||
const message = intl.formatMessage(sensitive === false ? messages.statusMarkedSensitive : messages.statusMarkedNotSensitive, { acct });
|
||||
dispatch(snackbar.success(message));
|
||||
}).catch(() => {});
|
||||
afterConfirm();
|
||||
|
|
Loading…
Reference in a new issue