Profile redesign: Remove feature flag (#38513)

This commit is contained in:
Echo authored and GitHub committed 2026-04-01 15:03:43 +00:00
1 parent 159d710bc1
commit ca5c0a144a
19 files changed
+67 -628

No files matched your search

@@ -6,7 +6,6 @@ import classNames from 'classnames';
import { Link } from 'react-router-dom';
import { useIdentity } from '@/mastodon/identity_context';
import { isServerFeatureEnabled } from '@/mastodon/utils/environment';
import {
fetchRelationships,
followAccount,
@@ -171,23 +170,10 @@ export const FollowButton: React.FC<{
'button--compact': compact,
});
if (isServerFeatureEnabled('profile_redesign')) {
return (
<Link to='/profile/edit' className={buttonClasses}>
{label}
</Link>
);
}
return (
<a
href='/settings/profile'
target='_blank'
rel='noopener'
className={buttonClasses}
>
<Link to='/profile/edit' className={buttonClasses}>
{label}
</a>
</Link>
);
}