EditProfile: fix <p></p>
This commit is contained in:
parent
7c6d42f987
commit
6166c2c4c5
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { unescape } from 'lodash';
|
|
||||||
import React, { useState, useEffect, useMemo } from 'react';
|
import React, { useState, useEffect, useMemo } from 'react';
|
||||||
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
import { defineMessages, useIntl, FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
@ -119,8 +118,8 @@ const accountToCredentials = (account: Account): AccountCredentials => {
|
||||||
return {
|
return {
|
||||||
discoverable: account.discoverable,
|
discoverable: account.discoverable,
|
||||||
bot: account.bot,
|
bot: account.bot,
|
||||||
display_name: unescape(account.display_name),
|
display_name: account.display_name,
|
||||||
note: account.source.get('note') || unescape(account.note),
|
note: account.source.get('note'),
|
||||||
locked: account.locked,
|
locked: account.locked,
|
||||||
fields_attributes: [...account.source.get<Iterable<AccountCredentialsField>>('fields', [])],
|
fields_attributes: [...account.source.get<Iterable<AccountCredentialsField>>('fields', [])],
|
||||||
stranger_notifications: account.getIn(['pleroma', 'notification_settings', 'block_from_strangers']) === true,
|
stranger_notifications: account.getIn(['pleroma', 'notification_settings', 'block_from_strangers']) === true,
|
||||||
|
|
Loading…
Reference in a new issue