Douglas Thrift 6 years ago
parent
commit
0543eb0b7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app.rb

+ 2 - 2
app.rb

@@ -58,11 +58,11 @@ get '/logout' do
 end
 
 =begin
-def list(user)
+def list
   all_photos = []
   page = 0
   begin
-    photos = flickr.photos.search(user_id: user, extras: 'license', per_page: 500, page: page += 1)
+    photos = flickr.photos.search(user_id: :me, extras: 'license', per_page: 500, page: page += 1)
     all_photos.push(*photos.to_a)
   end until photos.size < 500
   all_photos