Commit 1ec8c0e8 authored by Camil Staps's avatar Camil Staps

Fix API endpoint for starred projects of a user; add info about starred...

Fix API endpoint for starred projects of a user; add info about starred projects on profile to documentation
parent afc2f6a0
......@@ -27,6 +27,7 @@ On your profile page, you will see the following information:
- Groups: [groups](../group/index.md) you're a member of
- Contributed projects: [projects](../project/index.md) you contributed to
- Personal projects: your personal projects (respecting the project's visibility level)
- Starred projects: projects you starred
- Snippets: your personal code [snippets](../snippets.md#personal-snippets)
## Profile settings
......@@ -91,6 +92,7 @@ The following information will be hidden from the user profile page (`https://gi
- Groups tab
- Contributed projects tab
- Personal projects tab
- Starred projects tab
- Snippets tab
To enable private profile:
......
......@@ -128,7 +128,7 @@ module API
user = find_user(params[:user_id])
not_found!('User') unless user
starred_projects = StarredProjectsFinder.new(user).execute(current_user)
starred_projects = StarredProjectsFinder.new(user, current_user: current_user).execute
present_projects starred_projects
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment