Skip to content

Commit

Permalink
Remove the flag gate check for user profile page (#98905)
Browse files Browse the repository at this point in the history
  • Loading branch information
DustyReagan authored Jan 24, 2025
1 parent e59f11c commit e0a01ef
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions client/reader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import {
render as clientRender,
setSelectedSiteIdByOrigin,
} from 'calypso/controller';
import {
getUserProfileBasePath,
isUserProfileEnabled,
} from 'calypso/reader/user-profile/user-profile.utils';
import { getUserProfileBasePath } from 'calypso/reader/user-profile/user-profile.utils';
import {
blogListing,
feedDiscovery,
Expand Down Expand Up @@ -101,28 +98,26 @@ export default async function (): Promise< void > {
);

// User profile
if ( isUserProfileEnabled() ) {
page(
getUserProfileBasePath(),
blogDiscoveryByFeedId,
redirectLoggedOutToSignup,
updateLastRoute,
sidebar,
userPosts,
makeLayout,
clientRender
);
page(
getUserProfileBasePath( 'lists' ),
blogDiscoveryByFeedId,
redirectLoggedOutToSignup,
updateLastRoute,
sidebar,
userLists,
makeLayout,
clientRender
);
}
page(
getUserProfileBasePath(),
blogDiscoveryByFeedId,
redirectLoggedOutToSignup,
updateLastRoute,
sidebar,
userPosts,
makeLayout,
clientRender
);
page(
getUserProfileBasePath( 'lists' ),
blogDiscoveryByFeedId,
redirectLoggedOutToSignup,
updateLastRoute,
sidebar,
userLists,
makeLayout,
clientRender
);

// Old full post view
page( '/read/post/feed/:feed_id/:post_id', legacyRedirects );
Expand Down

0 comments on commit e0a01ef

Please sign in to comment.