fix for artist search
This commit is contained in:
@@ -60,7 +60,7 @@ module Sources
|
||||
@agent ||= begin
|
||||
mech = Mechanize.new
|
||||
|
||||
mech.get("http://seiga.nicovideo.jp/login/redirect?next_url=") do |page|
|
||||
mech.get("https://secure.nicovideo.jp/secure/login_form") do |page|
|
||||
page.form_with do |form|
|
||||
form["mail"] = Danbooru.config.nico_seiga_login
|
||||
form["password"] = Danbooru.config.nico_seiga_password
|
||||
|
||||
@@ -230,7 +230,7 @@ class Artist < ActiveRecord::Base
|
||||
q = active
|
||||
return q if params.blank?
|
||||
|
||||
case params[:name].present?
|
||||
case params[:name]
|
||||
when /^http/
|
||||
q = q.url_matches(params[:name])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user