Remove collections client-side feature flag (#38540)

This commit is contained in:
diondiondion 2026-04-02 15:53:47 +02:00 committed by GitHub
parent 954cc92a6d
commit f90f1e3b75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -1,11 +1,5 @@
import {
isClientFeatureEnabled,
isServerFeatureEnabled,
} from '@/mastodon/utils/environment';
import { isServerFeatureEnabled } from '@/mastodon/utils/environment';
export function areCollectionsEnabled() {
return (
isClientFeatureEnabled('collections') &&
isServerFeatureEnabled('collections')
);
return isServerFeatureEnabled('collections');
}

View File

@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
return initialState?.features.includes(feature) ?? false;
}
type ClientFeatures = 'collections';
type ClientFeatures = never;
export function isClientFeatureEnabled(feature: ClientFeatures) {
try {