(slug: string, userId?: string)
| 74 | } |
| 75 | |
| 76 | export 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 | |
| 83 | export async function getUserFollowers(id: string) { |
| 84 | "use cache"; |
no test coverage detected