summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2019-01-28 20:57:56 +0100
committerCamil Staps <info@camilstaps.nl>2019-08-07 20:49:16 +0200
commit1ec8c0e837ff4ba42adbc7cc1e9a15a04f2afd7e (patch)
treeb331df26acf8243353332b3a19ee51285f986609
parentafc2f6a0316ec79b2fd818e292a8aa191b6a47eb (diff)
downloadgitlab-ce-1ec8c0e837ff4ba42adbc7cc1e9a15a04f2afd7e.tar.gz
Fix API endpoint for starred projects of a user; add info about starred projects on profile to documentation
-rw-r--r--doc/user/profile/index.md2
-rw-r--r--lib/api/projects.rb2
2 files changed, 3 insertions, 1 deletions
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