diff --git a/app/models/artist.rb b/app/models/artist.rb index 953237ef4..093944fa8 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -115,7 +115,12 @@ class Artist < ActiveRecord::Base Artist.new.tap do |artist| if 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? artist.url_string = post.source end