From 1ec8c0e837ff4ba42adbc7cc1e9a15a04f2afd7e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 28 Jan 2019 20:57:56 +0100 Subject: Fix API endpoint for starred projects of a user; add info about starred projects on profile to documentation --- doc/user/profile/index.md | 2 ++ lib/api/projects.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/user/profile/index.md b/doc/user/profile/index.md index 06710065dfd..e5ccc8ee758 100644 --- a/doc/user/profile/index.md +++ b/doc/user/profile/index.md @@ -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: diff --git a/lib/api/projects.rb b/lib/api/projects.rb index dc9959b619f..f8f0ff48be0 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -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 -- cgit v1.2.1