Skip to content

Commit f7cf628

Browse files
authored
Add isPrivateUserProfile (#125)
1 parent cf7ea99 commit f7cf628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,8 @@ collect.set('isProfile', [
558558

559559
export const isUserProfile = (): boolean => isProfile() && !isOrganizationProfile();
560560

561+
export const isPrivateUserProfile = (): boolean => isUserProfile() && !exists('.user-following-container');
562+
561563
export const isUserProfileMainTab = (): boolean =>
562564
isUserProfile()
563565
&& !new URLSearchParams(location.search).has('tab');

0 commit comments

Comments
 (0)