app/controllers/muck/recommendations_controller.rb in muck-services-0.1.38 vs app/controllers/muck/recommendations_controller.rb in muck-services-0.1.39

- old
+ new

@@ -19,10 +19,10 @@ @details = (params[:details] == 'true') @limit = params[:limit] ? params[:limit].to_i : 5 @limit = 25 if @limit > 25 @omit_feeds = params[:omit_feeds] - @order = params[:order] || "rank" + @order = params[:order] == 'relevance' ? 'relevance desc' : (params[:order] || "rank asc, relevance desc") Entry.track_time_on_page(session, @uri) @entry = Entry.recommender_entry(@uri) @recommendations = @entry.related_entries.top(@details, @limit, @omit_feeds, @order) @app = request.protocol + request.host_with_port