Created
October 14, 2014 06:58
-
-
Save ssig33/3594fc24e532e8828e9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git app/controllers/api/feed_controller.rb app/controllers/api/feed_controller.rb | |
index f6e3b3e..092eb60 100644 | |
--- app/controllers/api/feed_controller.rb | |
+++ app/controllers/api/feed_controller.rb | |
@@ -48,7 +48,7 @@ class Api::FeedController < ApplicationController | |
rate: 0, | |
public: @member.default_public, | |
} | |
- if params[:folder_id] | |
+ if params[:folder_id] and params[:folder_id].to_i != 0 | |
folder_id = params[:folder_id].to_i | |
if @member.folders.exists?(folder_id) | |
options[:folder_id] = folder_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment