MCPcopy Create free account
hub / github.com/cursor/community-plugins / getUserProfile

Function getUserProfile

apps/cursor/src/data/queries.ts:76–81  ·  view source on GitHub ↗
(slug: string, userId?: string)

Source from the content-addressed store, hash-verified

74}
75
76export async function getUserProfile(slug: string, userId?: string) {
77 // Owner reads (settings, own-profile views) must be fresh and include
78 // private fields, so only the public variant is cached.
79 if (userId) return fetchUserProfile(slug, userId);
80 return getPublicUserProfile(slug);
81}
82
83export async function getUserFollowers(id: string) {
84 "use cache";

Callers 8

ProfileFunction · 0.90
generateMetadataFunction · 0.90
renderImageFunction · 0.90
generateMetadataFunction · 0.90
FollowersListFunction · 0.90
SettingsContentFunction · 0.90
generateMetadataFunction · 0.90
FollowingListFunction · 0.90

Calls 2

fetchUserProfileFunction · 0.85
getPublicUserProfileFunction · 0.85

Tested by

no test coverage detected