#2404 fix artist finder
This commit is contained in:
@@ -119,6 +119,9 @@ class ArtistsController < ApplicationController
|
||||
|
||||
def finder
|
||||
@artists = Artist.url_matches(params[:url]).order("id desc").limit(20)
|
||||
if @artists.empty? && params[:referer_url].present? && params[:referer_url] != params[:url]
|
||||
@artists = Artist.url_matches(params[:referer_url]).order("id desc").limit(20)
|
||||
end
|
||||
respond_with(@artists) do |format|
|
||||
format.xml do
|
||||
render :xml => @artists.to_xml(:include => [:urls], :root => "artists")
|
||||
|
||||
Reference in New Issue
Block a user