diff --git a/ruby/lib/jam_ruby/models/search.rb b/ruby/lib/jam_ruby/models/search.rb index 217288355..7a126c136 100644 --- a/ruby/lib/jam_ruby/models/search.rb +++ b/ruby/lib/jam_ruby/models/search.rb @@ -85,7 +85,7 @@ module JamRuby PARAM_MUSICIAN = :search_m - M_PER_PAGE = 6 + M_PER_PAGE = 10 M_ORDER_FOLLOWS = ['Most Followed', :followed] M_ORDER_PLAYS = ['Most Plays', :plays] @@ -199,7 +199,7 @@ module JamRuby def _count(musician, key) if mm = @user_counters[musician.id] return mm.detect { |ii| ii.is_a?(Hash) }[key] - end + end if @user_counters 0 end @@ -222,19 +222,19 @@ module JamRuby def is_friend?(musician) if mm = @user_counters[musician.id] return mm.include?(RESULT_FRIEND) - end + end if @user_counters false end def is_follower?(musician) if mm = @user_counters[musician.id] return mm.include?(RESULT_FOLLOW) - end + end if @user_counters false end def is_liker?(musician) if mm = @user_counters[musician.id] return mm.include?(RESULT_LIKE) - end + end if @user_counters false end