fixes #1149
This commit is contained in:
@@ -115,7 +115,12 @@ class Artist < ActiveRecord::Base
|
|||||||
Artist.new.tap do |artist|
|
Artist.new.tap do |artist|
|
||||||
if params[:name]
|
if params[:name]
|
||||||
artist.name = params[:name]
|
artist.name = params[:name]
|
||||||
post = Post.tag_match("source:http #{artist.name}").first
|
if CurrentUser.user.is_privileged?
|
||||||
|
# below privileged users are limited to two tags
|
||||||
|
post = Post.tag_match("source:http #{artist.name} status:any").first
|
||||||
|
else
|
||||||
|
post = Post.tag_match("source:http #{artist.name}").first
|
||||||
|
end
|
||||||
unless post.nil? || post.source.blank?
|
unless post.nil? || post.source.blank?
|
||||||
artist.url_string = post.source
|
artist.url_string = post.source
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user