summaryrefslogtreecommitdiff
path: root/lib/api/v3/snippets.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/snippets.rb')
-rw-r--r--lib/api/v3/snippets.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/snippets.rb b/lib/api/v3/snippets.rb
index 07dac7e9904..0762fc02d70 100644
--- a/lib/api/v3/snippets.rb
+++ b/lib/api/v3/snippets.rb
@@ -8,11 +8,11 @@ module API
resource :snippets do
helpers do
def snippets_for_current_user
- SnippetsFinder.new.execute(current_user, filter: :by_user, user: current_user)
+ SnippetsFinder.new(current_user, author: current_user).execute
end
def public_snippets
- SnippetsFinder.new.execute(current_user, filter: :public)
+ SnippetsFinder.new(current_user, visibility: Snippet::PUBLIC).execute
end
end