Remove Nostr-related stuff

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-29 18:43:33 +02:00
parent 040753e3e6
commit 8f963a64ba
49 changed files with 88 additions and 1665 deletions

View File

@ -54,7 +54,6 @@ const messages = defineMessages({
bioPlaceholder: { id: 'edit_profile.fields.bio_placeholder', defaultMessage: 'Tell us about yourself.' },
displayNamePlaceholder: { id: 'edit_profile.fields.display_name_placeholder', defaultMessage: 'Name' },
locationPlaceholder: { id: 'edit_profile.fields.location_placeholder', defaultMessage: 'Location' },
nip05Placeholder: { id: 'edit_profile.fields.nip05_placeholder', defaultMessage: 'user@{domain}' },
cancel: { id: 'common.cancel', defaultMessage: 'Cancel' },
});
@ -75,11 +74,6 @@ interface AccountCredentialsSource {
sensitive?: boolean;
/** Default language to use for authored statuses. (ISO 6391) */
language?: string;
/** Nostr metadata. */
nostr?: {
/** Nostr NIP-05 identifier. */
nip05?: string;
};
}
/**
@ -123,8 +117,6 @@ interface AccountCredentials {
location?: string;
/** User's birthday. */
birthday?: string;
/** Nostr NIP-05 identifier. */
nip05?: string;
}
/** Convert an account into an update_credentials request object. */
@ -146,7 +138,6 @@ const accountToCredentials = (account: Account): AccountCredentials => {
hide_follows_count: hideNetwork,
location: account.location,
birthday: account.pleroma?.birthday ?? undefined,
nip05: account.source?.nostr?.nip05 ?? '',
};
};
@ -313,19 +304,6 @@ const EditProfile: React.FC = () => {
/>
</FormGroup>
{features.nip05 && (
<FormGroup
labelText={<FormattedMessage id='edit_profile.fields.nip05_label' defaultMessage='Username' />}
>
<Input
type='text'
value={data.nip05}
onChange={handleTextChange('nip05')}
placeholder={intl.formatMessage(messages.nip05Placeholder, { domain: instance.domain })}
/>
</FormGroup>
)}
{features.birthdays && (
<FormGroup
labelText={<FormattedMessage id='edit_profile.fields.birthday_label' defaultMessage='Birthday' />}