Remove collections client-side feature flag (#38540)
This commit is contained in:
parent
954cc92a6d
commit
f90f1e3b75
@ -1,11 +1,5 @@
|
|||||||
import {
|
import { isServerFeatureEnabled } from '@/mastodon/utils/environment';
|
||||||
isClientFeatureEnabled,
|
|
||||||
isServerFeatureEnabled,
|
|
||||||
} from '@/mastodon/utils/environment';
|
|
||||||
|
|
||||||
export function areCollectionsEnabled() {
|
export function areCollectionsEnabled() {
|
||||||
return (
|
return isServerFeatureEnabled('collections');
|
||||||
isClientFeatureEnabled('collections') &&
|
|
||||||
isServerFeatureEnabled('collections')
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
|
|||||||
return initialState?.features.includes(feature) ?? false;
|
return initialState?.features.includes(feature) ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
type ClientFeatures = 'collections';
|
type ClientFeatures = never;
|
||||||
|
|
||||||
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
export function isClientFeatureEnabled(feature: ClientFeatures) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user