pl-fe: remove rebased email list feature

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-23 17:48:34 +02:00
parent 22d5f1d9d9
commit e28d6d0223
3 changed files with 0 additions and 28 deletions

View file

@ -58,7 +58,6 @@ const RegistrationForm: React.FC<IRegistrationForm> = ({ inviteToken }) => {
const needsConfirmation = instance.pleroma.metadata.account_activation_required;
const needsApproval = instance.registrations.approval_required;
const supportsEmailList = features.emailList;
const supportsAccountLookup = features.accountLookup;
const birthdayRequired = instance.pleroma.metadata.birthday_required;
const domains = instance.pleroma.metadata.multitenancy.enabled ? instance.pleroma.metadata.multitenancy.domains!.filter((domain) => domain.public) : undefined;
@ -364,16 +363,6 @@ const RegistrationForm: React.FC<IRegistrationForm> = ({ inviteToken }) => {
/>
</FormGroup>
{supportsEmailList && (
<FormGroup labelText={intl.formatMessage(messages.newsletter)}>
<Checkbox
name='accepts_email_list'
onChange={onCheckboxChange}
checked={params.accepts_email_list}
/>
</FormGroup>
)}
<FormActions>
<Button type='submit'>
<FormattedMessage id='registration.sign_up' defaultMessage='Sign up' />

View file

@ -103,8 +103,6 @@ interface AccountCredentials {
// Non-Mastodon fields
/** Pleroma: whether to accept notifications from people you don't follow. */
stranger_notifications?: boolean;
/** Rebased: whether the user opts-in to email communications. */
accepts_email_list?: boolean;
/** Pleroma: whether to publicly display followers. */
hide_followers?: boolean;
/** Pleroma: whether to publicly display follows. */
@ -136,7 +134,6 @@ const accountToCredentials = (account: Account): AccountCredentials => {
note: account.__meta.source?.note ?? '',
fields_attributes: [...account.__meta.source?.fields ?? []],
stranger_notifications: account.__meta.pleroma?.notification_settings?.block_from_strangers === true,
accepts_email_list: account.__meta.pleroma?.accepts_email_list === true,
hide_followers: hideNetwork,
hide_follows: hideNetwork,
hide_followers_count: hideNetwork,
@ -420,18 +417,6 @@ const EditProfile: React.FC = () => {
</ListItem>
)}
{features.emailList && (
<ListItem
label={<FormattedMessage id='edit_profile.fields.accepts_email_list_label' defaultMessage='Subscribe to newsletter' />}
hint={<FormattedMessage id='edit_profile.hints.accepts_email_list' defaultMessage='Opt-in to news and marketing updates.' />}
>
<Toggle
checked={data.accepts_email_list}
onChange={handleCheckboxChange('accepts_email_list')}
/>
</ListItem>
)}
{features.rssFeeds && features.version.software === GOTOSOCIAL && (
<ListItem
label={<FormattedMessage id='edit_profile.fields.rss_label' defaultMessage='Enable RSS feed for public posts' />}

View file

@ -637,7 +637,6 @@
"edit_federation.unlisted": "Force posts unlisted",
"edit_password.header": "Change password",
"edit_profile.error": "Profile update failed",
"edit_profile.fields.accepts_email_list_label": "Subscribe to newsletter",
"edit_profile.fields.bio_label": "Bio",
"edit_profile.fields.bio_placeholder": "Tell us about yourself.",
"edit_profile.fields.birthday_label": "Birthday",
@ -657,7 +656,6 @@
"edit_profile.fields.rss_label": "Enable RSS feed for public posts",
"edit_profile.fields.stranger_notifications_label": "Block notifications from strangers",
"edit_profile.header": "Edit profile",
"edit_profile.hints.accepts_email_list": "Opt-in to news and marketing updates.",
"edit_profile.hints.bot": "This account mainly performs automated actions and might not be monitored",
"edit_profile.hints.discoverable": "Display account in profile directory and allow indexing by external services",
"edit_profile.hints.hide_network": "Who you follow and who follows you will not be shown on your profile",