Fix API endpoint for starred projects of a user; add info about starred projects on profile to documentation

This commit is contained in:
Camil Staps 2019-01-28 20:57:56 +01:00
parent afc2f6a031
commit 1ec8c0e837
No known key found for this signature in database
GPG Key ID: 4A9BFD4F6A415F83
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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